Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ conversation = ""
|
|
12 |
user_name = "MH"
|
13 |
bot_name = "bbDemo"
|
14 |
|
15 |
-
def chat_hf(audio
|
16 |
conversation = ""
|
17 |
try:
|
18 |
whisper_text = translate(audio)
|
@@ -151,6 +151,6 @@ with gr.Blocks(css=css) as demo:
|
|
151 |
|
152 |
gr.HTML(article)
|
153 |
|
154 |
-
send_btn.click(chat_hf, inputs=[record_input
|
155 |
|
156 |
demo.queue(max_size=32, concurrency_count=20).launch(debug=True)
|
|
|
12 |
user_name = "MH"
|
13 |
bot_name = "bbDemo"
|
14 |
|
15 |
+
def chat_hf(audio):
|
16 |
conversation = ""
|
17 |
try:
|
18 |
whisper_text = translate(audio)
|
|
|
151 |
|
152 |
gr.HTML(article)
|
153 |
|
154 |
+
send_btn.click(chat_hf, inputs=[record_input], outputs=[audio_translation, gpt_response])
|
155 |
|
156 |
demo.queue(max_size=32, concurrency_count=20).launch(debug=True)
|