Mohssinibra commited on
Commit
99a86ff
·
verified ·
1 Parent(s): 856e48b
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -48,7 +48,8 @@ def translate_text(text):
48
  demo = gr.Interface(fn=transcribe_audio,
49
  inputs=gr.Audio(type="filepath"), # Corrected input component
50
  outputs=["text", "text"], # Both transcription and translation outputs
51
- live=True)
52
 
 
53
  demo.launch()
54
  demo.launch(api=True, share=True)
 
48
  demo = gr.Interface(fn=transcribe_audio,
49
  inputs=gr.Audio(type="filepath"), # Corrected input component
50
  outputs=["text", "text"], # Both transcription and translation outputs
51
+ live=False)
52
 
53
+ demo.add_button("Submit")
54
  demo.launch()
55
  demo.launch(api=True, share=True)