Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,8 +54,8 @@ def chat_hf(audio, custom_token, language):
|
|
54 |
else:
|
55 |
data = {"content": whisper_text}
|
56 |
print(data)
|
57 |
-
|
58 |
-
|
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"]
|
|
|
54 |
else:
|
55 |
data = {"content": whisper_text}
|
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"]
|