yuntian-deng commited on
Commit
a887949
·
verified ·
1 Parent(s): ae3ecf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -34,7 +34,13 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
34
  }
35
  OPENAI_API_KEY = random.choice(OPENAI_API_KEYS)
36
  print (OPENAI_API_KEY)
 
 
 
 
37
  headers_dict = {key.decode('utf-8'): value.decode('utf-8') for key, value in request.headers.raw}
 
 
38
  headers = {
39
  "Content-Type": "application/json",
40
  "Authorization": f"Bearer {OPENAI_API_KEY}",
 
34
  }
35
  OPENAI_API_KEY = random.choice(OPENAI_API_KEYS)
36
  print (OPENAI_API_KEY)
37
+ print ('here')
38
+ print (request.headers)
39
+ print (request.headers.raw)
40
+
41
  headers_dict = {key.decode('utf-8'): value.decode('utf-8') for key, value in request.headers.raw}
42
+ print ('here22')
43
+
44
  headers = {
45
  "Content-Type": "application/json",
46
  "Authorization": f"Bearer {OPENAI_API_KEY}",