wilton commited on
Commit
7d1dd6b
1 Parent(s): 212b10a

updating of functions, new MMS model for spanish TTS support

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -49,13 +49,13 @@ Demo for cascaded speech-to-speech translation (STST), mapping from source speec
49
 
50
  demo = gr.Blocks()
51
 
52
- # mic_translate = gr.Interface(
53
- # fn=speech_to_speech_translation,
54
- # inputs=gr.Audio(source="microphone", type="filepath"),
55
- # outputs=gr.Audio(label="Generated Speech :)", type="numpy"),
56
- # title=title,
57
- # description=description,
58
- # )
59
 
60
  file_translate = gr.Interface(
61
  fn=speech_to_speech_translation,
@@ -67,7 +67,6 @@ file_translate = gr.Interface(
67
  )
68
 
69
  with demo:
70
- gr.TabbedInterface([file_translate], ["Audio File"])
71
- # gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
72
 
73
  demo.launch(debug=True)
 
49
 
50
  demo = gr.Blocks()
51
 
52
+ mic_translate = gr.Interface(
53
+ fn=speech_to_speech_translation,
54
+ inputs=gr.Audio(source="microphone", type="filepath"),
55
+ outputs=gr.Audio(label="Generated Speech :)", type="numpy"),
56
+ title=title,
57
+ description=description,
58
+ )
59
 
60
  file_translate = gr.Interface(
61
  fn=speech_to_speech_translation,
 
67
  )
68
 
69
  with demo:
70
+ gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
 
71
 
72
  demo.launch(debug=True)