gmdnn commited on
Commit
1fcd080
·
1 Parent(s): 71b9a76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,6 +2,7 @@ import os
2
  os.system("pip install gradio==3.3")
3
  import gradio as gr
4
  import numpy as np
 
5
 
6
  title = "SpeechMatrix Speech-to-speech Translation"
7
 
@@ -19,7 +20,7 @@ for src in SRC_LIST:
19
 
20
  examples = []
21
 
22
- io_dict = {model: gr.Interface.load(f"huggingface/facebook/{model}") for model in MODEL_LIST}
23
 
24
  def inference(audio, model):
25
  out_audio = io_dict[model](audio)
 
2
  os.system("pip install gradio==3.3")
3
  import gradio as gr
4
  import numpy as np
5
+ import streamlit as st
6
 
7
  title = "SpeechMatrix Speech-to-speech Translation"
8
 
 
20
 
21
  examples = []
22
 
23
+ io_dict = {model: gr.Interface.load(f"huggingface/facebook/{model}", api_key=st.secrets["api_key"]) for model in MODEL_LIST}
24
 
25
  def inference(audio, model):
26
  out_audio = io_dict[model](audio)