ciditel commited on
Commit
31aa57c
1 Parent(s): eac425b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -92,7 +92,7 @@ def transcribe(inputs, task):
92
 
93
  demo = gr.Blocks()
94
 
95
- file_transcribe = gr.Interface(
96
  fn=transcribe,
97
  inputs=[
98
  gr.Audio(),
@@ -110,9 +110,8 @@ file_transcribe = gr.Interface(
110
  #allow_flagging="never",
111
  )
112
 
 
 
113
 
114
- with demo:
115
- gr.TabbedInterface([ file_transcribe], [ "Audio file"])
116
 
117
- demo.launch(share=True)
118
 
 
92
 
93
  demo = gr.Blocks()
94
 
95
+ gradio_app = gr.Interface(
96
  fn=transcribe,
97
  inputs=[
98
  gr.Audio(),
 
110
  #allow_flagging="never",
111
  )
112
 
113
+ if __name__ == "__main__":
114
+ gradio_app.launch()
115
 
 
 
116
 
 
117