cerkut commited on
Commit
64d4d79
1 Parent(s): 8c257b0

only the file

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -46,13 +46,6 @@ def speech_to_speech_translation(audio):
46
 
47
  import gradio as gr
48
 
49
- demo = gr.Blocks()
50
-
51
- mic_translate = gr.Interface(
52
- fn=speech_to_speech_translation,
53
- inputs=gr.Audio(sources="microphone", type="filepath"),
54
- outputs=gr.Audio(label="Generated Speech", type="numpy"),
55
- )
56
 
57
  file_translate = gr.Interface(
58
  fn=speech_to_speech_translation,
@@ -60,7 +53,4 @@ file_translate = gr.Interface(
60
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
61
  )
62
 
63
- with demo:
64
- gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
65
-
66
- demo.launch(debug=True, share=True)
 
46
 
47
  import gradio as gr
48
 
 
 
 
 
 
 
 
49
 
50
  file_translate = gr.Interface(
51
  fn=speech_to_speech_translation,
 
53
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
54
  )
55
 
56
+ file_translate.launch(debug=True, share=True)