Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def chat_hf(audio, custom_token, language):
|
|
43 |
gpt_response = "MISSING AUDIO: Record your voice by clicking the microphone button, do not forget to stop recording before sending your message ;)"
|
44 |
else:
|
45 |
#gpt_response = chatbot.ask(whisper_text, conversation_id=conversation_id, parent_id=None)
|
46 |
-
gpt_response = asyncio.run(chat_gpt_ask(whisper_text
|
47 |
#if chat_id['conversation_id'] != None:
|
48 |
# data = {"content": whisper_text, "conversation_id": chat_id['conversation_id'], "parent_id": chat_id['parent_id']}
|
49 |
#else:
|
@@ -117,7 +117,7 @@ def translate(audio):
|
|
117 |
""")
|
118 |
|
119 |
text_result = whisper(audio, None, "transcribe", fn_index=0)
|
120 |
-
|
121 |
return text_result
|
122 |
|
123 |
|
|
|
43 |
gpt_response = "MISSING AUDIO: Record your voice by clicking the microphone button, do not forget to stop recording before sending your message ;)"
|
44 |
else:
|
45 |
#gpt_response = chatbot.ask(whisper_text, conversation_id=conversation_id, parent_id=None)
|
46 |
+
gpt_response = asyncio.run(chat_gpt_ask(whisper_text))
|
47 |
#if chat_id['conversation_id'] != None:
|
48 |
# data = {"content": whisper_text, "conversation_id": chat_id['conversation_id'], "parent_id": chat_id['parent_id']}
|
49 |
#else:
|
|
|
117 |
""")
|
118 |
|
119 |
text_result = whisper(audio, None, "transcribe", fn_index=0)
|
120 |
+
print(text_result)
|
121 |
return text_result
|
122 |
|
123 |
|