Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,9 @@ def load_model(model_name):
|
|
32 |
if model_name == current_model_name:
|
33 |
return current_model
|
34 |
|
|
|
|
|
|
|
35 |
model_path = hf_hub_download(
|
36 |
repo_id=info["repo_id"],
|
37 |
filename=info["filename"],
|
|
|
32 |
if model_name == current_model_name:
|
33 |
return current_model
|
34 |
|
35 |
+
# Load the repo info related to the selected model from the available models dictionary
|
36 |
+
info = AVAILABLE_MODELS.get(model_name)
|
37 |
+
|
38 |
model_path = hf_hub_download(
|
39 |
repo_id=info["repo_id"],
|
40 |
filename=info["filename"],
|