kitsumed commited on
Commit
b24456a
·
verified ·
1 Parent(s): 583ae71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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"],