Spaces:
Build error
Build error
Update app.py
Browse files
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
|
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)
|