lpw commited on
Commit
b2f0be5
1 Parent(s): 18647a3

Update app.py

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