Spaces:
Running
Running
Update app.py
Browse files
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}",
|