Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -2056,7 +2056,7 @@ def clear_state_and_textbox():
|
|
2056 |
|
2057 |
def transcribe_and_update_textbox(audio, chat_input):
|
2058 |
transcribed_text = transcribe(audio)
|
2059 |
-
return
|
2060 |
|
2061 |
with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
2062 |
with gr.Row():
|
@@ -2092,7 +2092,6 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
|
2092 |
gr.Markdown("<h2>Hey Radar</h2>")
|
2093 |
audio_input = gr.Audio(sources=["microphone"], type='numpy')
|
2094 |
transcribe_button = gr.Button("Transcribe")
|
2095 |
-
# transcribe_button.click(fn=transcribe_and_update_textbox, inputs=[audio_input, chat_input], outputs=[transcribe_output, chat_input])
|
2096 |
transcribe_button.click(fn=transcribe_and_update_textbox, inputs=[audio_input], outputs=[chat_input])
|
2097 |
|
2098 |
with gr.Column():
|
|
|
2056 |
|
2057 |
def transcribe_and_update_textbox(audio, chat_input):
|
2058 |
transcribed_text = transcribe(audio)
|
2059 |
+
return "", transcribed_text
|
2060 |
|
2061 |
with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
2062 |
with gr.Row():
|
|
|
2092 |
gr.Markdown("<h2>Hey Radar</h2>")
|
2093 |
audio_input = gr.Audio(sources=["microphone"], type='numpy')
|
2094 |
transcribe_button = gr.Button("Transcribe")
|
|
|
2095 |
transcribe_button.click(fn=transcribe_and_update_textbox, inputs=[audio_input], outputs=[chat_input])
|
2096 |
|
2097 |
with gr.Column():
|