lpw commited on
Commit
40f6e71
1 Parent(s): da38675

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -22,7 +22,10 @@ for src in SRC_LIST:
22
  examples = []
23
 
24
  # io_dict = {model: gr.Interface.load(f"huggingface/facebook/{model}", api_key=st.secrets["api_key"]) for model in MODEL_LIST}
25
- pipe_dict = {model: SpeechToSpeechPipeline(f"facebook/{model}") for model in MODEL_LIST}
 
 
 
26
 
27
  def inference(audio, model):
28
  out_audio = pipe_dict[model](audio).get_config()["value"]["name"]
 
22
  examples = []
23
 
24
  # io_dict = {model: gr.Interface.load(f"huggingface/facebook/{model}", api_key=st.secrets["api_key"]) for model in MODEL_LIST}
25
+ # pipe_dict = {model: SpeechToSpeechPipeline(f"facebook/{model}") for model in MODEL_LIST}
26
+ for model in MODEL_LIST:
27
+ print(f"model: {model}")
28
+ pipe_dict[model] = SpeechToSpeechPipeline(f"facebook/{model}")
29
 
30
  def inference(audio, model):
31
  out_audio = pipe_dict[model](audio).get_config()["value"]["name"]