Spaces:
Runtime error
Runtime error
Update app.py
#7
by
Yusin
- opened
app.py
CHANGED
@@ -78,7 +78,7 @@ def translate(audio):
|
|
78 |
""")
|
79 |
|
80 |
text_result = whisper(audio, None, "transcribe", fn_index=0)
|
81 |
-
print(text_result)
|
82 |
return text_result
|
83 |
|
84 |
|
@@ -100,7 +100,7 @@ with gr.Blocks() as blocks:
|
|
100 |
submit = gr.Button("Submit", variant="primary")
|
101 |
with gr.Column():
|
102 |
text1 = gr.Textbox(label="Speech to Text")
|
103 |
-
text2 = gr.Textbox(label="ChatGPT
|
104 |
audio = gr.Audio(label="Output", interactive=False)
|
105 |
#gr.Markdown(info)
|
106 |
#gr.Markdown("<center>"
|
|
|
78 |
""")
|
79 |
|
80 |
text_result = whisper(audio, None, "transcribe", fn_index=0)
|
81 |
+
#print(text_result)
|
82 |
return text_result
|
83 |
|
84 |
|
|
|
100 |
submit = gr.Button("Submit", variant="primary")
|
101 |
with gr.Column():
|
102 |
text1 = gr.Textbox(label="Speech to Text")
|
103 |
+
text2 = gr.Textbox(label="ChatGPT Response")
|
104 |
audio = gr.Audio(label="Output", interactive=False)
|
105 |
#gr.Markdown(info)
|
106 |
#gr.Markdown("<center>"
|