Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,12 +34,8 @@ 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 |
-
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",
|
|
|
|
| 34 |
}
|
| 35 |
OPENAI_API_KEY = random.choice(OPENAI_API_KEYS)
|
| 36 |
print (OPENAI_API_KEY)
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
headers_dict = {key.decode('utf-8'): value.decode('utf-8') for key, value in request.headers.raw}
|
|
|
|
| 39 |
|
| 40 |
headers = {
|
| 41 |
"Content-Type": "application/json",
|