Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def chat_hf(audio, custom_token, language):
|
|
39 |
else:
|
40 |
data = {"content": whisper_text}
|
41 |
print(data)
|
42 |
-
response = requests.post('http://
|
43 |
print(response.text)
|
44 |
chat_id['parent_id'] = response.json()["response_id"]
|
45 |
chat_id['conversation_id'] = response.json()["conversation_id"]
|
|
|
39 |
else:
|
40 |
data = {"content": whisper_text}
|
41 |
print(data)
|
42 |
+
response = requests.post('http://93.56.204.222:7788/api/ask', headers=headers, json=data)
|
43 |
print(response.text)
|
44 |
chat_id['parent_id'] = response.json()["response_id"]
|
45 |
chat_id['conversation_id'] = response.json()["conversation_id"]
|