Yusin commited on
Commit
758230b
1 Parent(s): 1baef98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=json.dumps(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"]