Stopwolf commited on
Commit
9a22fd3
1 Parent(s): 6100d73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -70,10 +70,12 @@ Demo for cascaded speech-to-speech translation (STST), mapping from source speec
70
 
71
  with gr.Blocks() as demo:
72
 
73
- with gr.Row():
74
  audio_in = gr.Microphone(label="Input audio", type="filepath")
75
  audio_out = gr.Audio(label="Output audio", type="numpy", autoplay=True)
76
 
77
- audio_in.stop_recording(speech_to_speech_translation, inputs=[audio_in], outputs=[audio_out]) # gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
 
 
78
 
79
  demo.launch()
 
70
 
71
  with gr.Blocks() as demo:
72
 
73
+ with gr.Row():
74
  audio_in = gr.Microphone(label="Input audio", type="filepath")
75
  audio_out = gr.Audio(label="Output audio", type="numpy", autoplay=True)
76
 
77
+
78
+ audio_in.stop_recording(speech_to_speech_translation, inputs=[audio_in], outputs=[audio_out])
79
+ # gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
80
 
81
  demo.launch()