zongxiao commited on
Commit
8e194d1
1 Parent(s): da9d4b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -55,6 +55,7 @@ file_translate = gr.Interface(
55
  fn=speech_to_speech_translation_fix,
56
  inputs=gr.Audio(source="upload", type="filepath"),
57
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
 
58
  title=title,
59
  description=description,
60
  )
@@ -62,4 +63,4 @@ file_translate = gr.Interface(
62
  with demo:
63
  gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
64
 
65
- demo.launch()
 
55
  fn=speech_to_speech_translation_fix,
56
  inputs=gr.Audio(source="upload", type="filepath"),
57
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
58
+ examples=[["./example.wav"]],
59
  title=title,
60
  description=description,
61
  )
 
63
  with demo:
64
  gr.TabbedInterface([mic_translate, file_translate], ["Microphone", "Audio File"])
65
 
66
+ demo.launch(share=True)