Spaces:
Runtime error
Runtime error
Anmol Gupta
commited on
added .inputs to get rid of HF error
Browse files
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=[
|