Eriberto commited on
Commit
0b0500e
·
1 Parent(s): 3ea90d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ conversation = ""
12
  user_name = "MH"
13
  bot_name = "bbDemo"
14
 
15
- def chat_hf(audio, custom_token):
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, custom_token], outputs=[audio_translation, gpt_response])
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)