yuntian-deng commited on
Commit
834609d
1 Parent(s): 1adddf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -79,8 +79,9 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
79
  headers = {
80
  "Content-Type": "application/json",
81
  "Authorization": f"Bearer {OPENAI_API_KEY}",
82
- "Headers": f"{request.kwargs['headers']}"
83
  }
 
84
 
85
  # print(f"chat_counter - {chat_counter}")
86
  if chat_counter != 0 :
 
79
  headers = {
80
  "Content-Type": "application/json",
81
  "Authorization": f"Bearer {OPENAI_API_KEY}",
82
+ "Headers": f"{request.headers}"
83
  }
84
+ print (request.headers)
85
 
86
  # print(f"chat_counter - {chat_counter}")
87
  if chat_counter != 0 :