IHHI commited on
Commit
5e41984
·
1 Parent(s): 6131ae5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -56,8 +56,16 @@ mic_translate = gr.Interface(
56
  description=description,
57
  )
58
 
 
 
 
 
 
 
 
 
59
 
60
  with demo:
61
- gr.TabbedInterface([mic_translate], ["Microphone"])
62
 
63
  demo.launch()
 
56
  description=description,
57
  )
58
 
59
+ file_translate = gr.Interface(
60
+ fn=speech_to_speech_translation,
61
+ inputs=gr.Audio(source="upload", type="filepath"),
62
+ outputs=gr.Audio(label="Generated Speech", type="numpy"),
63
+ examples=[["./example.wav"]],
64
+ title=title,
65
+ description=description,
66
+ )
67
 
68
  with demo:
69
+ gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
70
 
71
  demo.launch()