mwells commited on
Commit
0cee625
·
verified ·
1 Parent(s): 32927db

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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()