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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -9
app.py CHANGED
@@ -22,14 +22,21 @@ 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="file")
30
- ],
31
- outputs=[
32
- "textbox"
33
- ],
34
- live=True).launch()
35
-
 
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
+
36
  gr.Interface(
37
+ title="OpenAI-Whisper Audio to Text Web UI",
38
  fn=transcribe,
39
+ inputs=[gr.components.Audio(type="file")],
40
+ outputs=["textbox"],
41
+ live=True
42
+ ).launch()