Yusin commited on
Commit
33794fa
1 Parent(s): 50a4f2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def chat_hf(audio, custom_token, language):
26
  if whisper_text == "ERROR: You have to either use the microphone or upload an audio file":
27
  gpt_response = "MISSING AUDIO: Record your voice by clicking the microphone button, do not forget to stop recording before sending your message ;)"
28
  else:
29
- gpt_response, _ = chatgpt(whisper_text, [])
30
  print(gpt_response)
31
  gpt_response = gpt_response[0]
32
 
 
26
  if whisper_text == "ERROR: You have to either use the microphone or upload an audio file":
27
  gpt_response = "MISSING AUDIO: Record your voice by clicking the microphone button, do not forget to stop recording before sending your message ;)"
28
  else:
29
+ gpt_response = chatgpt(whisper_text, [], fn_index=0)
30
  print(gpt_response)
31
  gpt_response = gpt_response[0]
32