Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import requests
|
|
5 |
def chat(input):
|
6 |
url = 'http://dark.21cnai.com:5000/api/chat'
|
7 |
data = { "message": input }
|
8 |
-
headers = {"Content-Type": "
|
9 |
response = requests.post(url, json=data, headers=headers)
|
10 |
print(response.text)
|
11 |
return response.text
|
|
|
5 |
def chat(input):
|
6 |
url = 'http://dark.21cnai.com:5000/api/chat'
|
7 |
data = { "message": input }
|
8 |
+
headers = {"Content-Type": "Application/json","Authorization":"Bearer kdfjwoieskdflasdnf"}
|
9 |
response = requests.post(url, json=data, headers=headers)
|
10 |
print(response.text)
|
11 |
return response.text
|