Anmol Gupta commited on
Commit
7e4a9d7
·
unverified ·
1 Parent(s): 6ffffa8

added .inputs to get rid of HF error

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -32,15 +32,15 @@ def transcribe(audio):
32
 
33
  return [result_text, out_result]
34
 
35
- output_1 = gr.Textbox(label="Speech to Text")
36
- output_2 = gr.Textbox(label="ChatGPT Output")
37
 
38
 
39
  gr.Interface(
40
  title = 'OpenAI Whisper and ChatGPT ASR Gradio Web UI',
41
  fn=transcribe,
42
  inputs=[
43
- gr.Audio(source="microphone", type="filepath")
44
  ],
45
 
46
  outputs=[
 
32
 
33
  return [result_text, out_result]
34
 
35
+ output_1 = gr.inputs.Textbox(label="Speech to Text")
36
+ output_2 = gr.inputs.Textbox(label="ChatGPT Output")
37
 
38
 
39
  gr.Interface(
40
  title = 'OpenAI Whisper and ChatGPT ASR Gradio Web UI',
41
  fn=transcribe,
42
  inputs=[
43
+ gr.inputs.Audio(source="microphone", type="filepath")
44
  ],
45
 
46
  outputs=[