pratham0011 commited on
Commit
698ed74
·
verified ·
1 Parent(s): c191eff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -14
app.py CHANGED
@@ -22,20 +22,14 @@ def transcribe(audio):
22
  return result.text
23
 
24
 
25
- # gr.Interface(
26
- # title = 'OpenAI-Whisper Audio to Text Web UI',
27
- # fn=transcribe,
28
- # inputs=[
29
- # gr.inputs.Audio(type="filepath")
30
- # ],
31
- # outputs=[
32
- # "textbox"
33
- # ],
34
- # live=True).launch()
35
-
36
  gr.Interface(
 
37
  fn=transcribe,
38
- inputs=[gr.inputs.Audio(type="file")], # Use "file" instead of "filepath"
39
- outputs="text",
40
- title='OpenAI-Whisper Audio to Text Web UI',
 
 
 
41
  live=True).launch()
 
 
22
  return result.text
23
 
24
 
 
 
 
 
 
 
 
 
 
 
 
25
  gr.Interface(
26
+ title = 'OpenAI-Whisper Audio to Text Web UI',
27
  fn=transcribe,
28
+ inputs=[
29
+ gr.inputs.Audio(type="file")
30
+ ],
31
+ outputs=[
32
+ "textbox"
33
+ ],
34
  live=True).launch()
35
+