lpw commited on
Commit
fe8cfc2
1 Parent(s): 576543f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ print(MODEL_LIST)
26
 
27
  # io_dict = {model: gr.Interface.load(f"huggingface/facebook/{model}", api_key=st.secrets["api_key"]) for model in MODEL_LIST}
28
  # io_dict = {model: gr.Interface.load(f"huggingface/facebook/{model}") for model in MODEL_LIST}
29
- io_dict = {model: load_model_ensemble_and_task_from_hf_hub(f"facebook/{model}") for model in MODEL_LIST}
30
 
31
  def inference(audio, model):
32
  out_audio = io_dict[model](audio)
 
26
 
27
  # io_dict = {model: gr.Interface.load(f"huggingface/facebook/{model}", api_key=st.secrets["api_key"]) for model in MODEL_LIST}
28
  # io_dict = {model: gr.Interface.load(f"huggingface/facebook/{model}") for model in MODEL_LIST}
29
+ io_dict = {model: load_model_ensemble_and_task_from_hf_hub(f"facebook/{model}")[0] for model in MODEL_LIST}
30
 
31
  def inference(audio, model):
32
  out_audio = io_dict[model](audio)