xiezhe22 commited on
Commit
27e2c4b
Β·
1 Parent(s): 8d3a706
Files changed (2) hide show
  1. __pycache__/app.cpython-313.pyc +0 -0
  2. app.py +3 -1
__pycache__/app.cpython-313.pyc CHANGED
Binary files a/__pycache__/app.cpython-313.pyc and b/__pycache__/app.cpython-313.pyc differ
 
app.py CHANGED
@@ -68,7 +68,9 @@ def load_model_by_name(name: str):
68
 
69
  def switch_model(selected_model_name: str):
70
  """Wrapper for Gradio to switch models via radio selection."""
71
- return load_model_by_name(selected_model_name)
 
 
72
 
73
  # ─── HELPER FUNCTIONS ──────────────────────────────────────────────────────────
74
 
 
68
 
69
  def switch_model(selected_model_name: str):
70
  """Wrapper for Gradio to switch models via radio selection."""
71
+ # Activate the model but do not return values (Gradio expects 0 outputs here).
72
+ _ = load_model_by_name(selected_model_name)
73
+ return None
74
 
75
  # ─── HELPER FUNCTIONS ──────────────────────────────────────────────────────────
76