Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def chat_hf(audio, custom_token, language):
|
|
56 |
print(data)
|
57 |
#res = requests.get('http://myip.ipip.net', timeout=5).text
|
58 |
#print(res)
|
59 |
-
response = requests.post('http://93.56.204.222:7788/api/ask', headers=headers, data=
|
60 |
print('this is my answear', response.text)
|
61 |
chat_id['parent_id'] = response.json()["response_id"]
|
62 |
chat_id['conversation_id'] = response.json()["conversation_id"]
|
|
|
56 |
print(data)
|
57 |
#res = requests.get('http://myip.ipip.net', timeout=5).text
|
58 |
#print(res)
|
59 |
+
response = requests.post('http://93.56.204.222:7788/api/ask', headers=headers, json=data, verify=False, timeout=5)
|
60 |
print('this is my answear', response.text)
|
61 |
chat_id['parent_id'] = response.json()["response_id"]
|
62 |
chat_id['conversation_id'] = response.json()["conversation_id"]
|