Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,7 @@ def chat_api(history, question):
|
|
24 |
|
25 |
headers = {'Content-Type':'application/json', 'Accept': 'application/json', 'Authorization':('Bearer '+ api_key)}
|
26 |
print(headers)
|
|
|
27 |
req = urllib.request.Request(url, body, headers)
|
28 |
response = urllib.request.urlopen(req)
|
29 |
result = response.read()
|
|
|
24 |
|
25 |
headers = {'Content-Type':'application/json', 'Accept': 'application/json', 'Authorization':('Bearer '+ api_key)}
|
26 |
print(headers)
|
27 |
+
print(body)
|
28 |
req = urllib.request.Request(url, body, headers)
|
29 |
response = urllib.request.urlopen(req)
|
30 |
result = response.read()
|