Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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 |
|