pratham0011 commited on
Commit
b48a33a
·
verified ·
1 Parent(s): 4795ab0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -21,25 +21,25 @@ def transcribe(audio):
21
  return result.text
22
 
23
 
24
- # gradio.Interface(
25
- # title = 'OpenAI-Whisper Audio to Text Web UI',
26
- # fn=transcribe,
27
- # inputs=[
28
- # gradio.inputs.Audio(source="microphone", type="filepath")
29
- # ],
30
- # outputs=[
31
- # "textbox"
32
- # ],
33
- # live=True).launch(inline = False)
34
-
35
- gr.Interface(
36
- title='OpenAI-Whisper Audio to Text Web UI',
37
  fn=transcribe,
38
  inputs=[
39
- gr.inputs.Audio(source="microphone", type="file", label="Record Audio")
40
  ],
41
  outputs=[
42
- gr.outputs.Textbox(label="Transcription")
43
  ],
44
- live=True
45
- ).launch(inline=False)
 
 
 
 
 
 
 
 
 
 
 
 
21
  return result.text
22
 
23
 
24
+ gradio.Interface(
25
+ title = 'OpenAI-Whisper Audio to Text Web UI',
 
 
 
 
 
 
 
 
 
 
 
26
  fn=transcribe,
27
  inputs=[
28
+ gradio.Audio(source="microphone", type="filepath")
29
  ],
30
  outputs=[
31
+ "textbox"
32
  ],
33
+ live=True).launch(inline = False)
34
+
35
+ # gr.Interface(
36
+ # title='OpenAI-Whisper Audio to Text Web UI',
37
+ # fn=transcribe,
38
+ # inputs=[
39
+ # gr.inputs.Audio(source="microphone", type="file", label="Record Audio")
40
+ # ],
41
+ # outputs=[
42
+ # gr.outputs.Textbox(label="Transcription")
43
+ # ],
44
+ # live=True
45
+ # ).launch(inline=False)