dzur658 commited on
Commit
73f1e96
·
1 Parent(s): 8268044

Got rid of mic translation since it is not working, and only file upload is needed for the space

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -56,13 +56,13 @@ Demo for cascaded speech-to-speech translation (STST), mapping from English to D
56
 
57
  demo = gr.Blocks()
58
 
59
- mic_translate = gr.Interface(
60
- fn=speech_to_speech_translation,
61
- inputs=gr.Audio(sources=["microphone"], type="filepath"),
62
- outputs=gr.Audio(label="Generated Speech", type="numpy"),
63
- title=title,
64
- description=description,
65
- )
66
 
67
  file_translate = gr.Interface(
68
  fn=speech_to_speech_translation,
@@ -74,6 +74,6 @@ file_translate = gr.Interface(
74
  )
75
 
76
  with demo:
77
- gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
78
 
79
  demo.launch()
 
56
 
57
  demo = gr.Blocks()
58
 
59
+ # mic_translate = gr.Interface(
60
+ # fn=speech_to_speech_translation,
61
+ # inputs=gr.Audio(sources=["microphone"], type="filepath"),
62
+ # outputs=gr.Audio(label="Generated Speech", type="numpy"),
63
+ # title=title,
64
+ # description=description,
65
+ # )
66
 
67
  file_translate = gr.Interface(
68
  fn=speech_to_speech_translation,
 
74
  )
75
 
76
  with demo:
77
+ gr.TabbedInterface([file_translate], ["Audio File"])
78
 
79
  demo.launch()