Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -63,6 +63,7 @@ def predict(openai_gpt4_key, system_msg, inputs, top_p, temperature, chat_counte
|
|
63 |
chat_counter+=1
|
64 |
|
65 |
history.append(inputs)
|
|
|
66 |
print(f"Logging : payload is - {payload}")
|
67 |
# make a POST request to the API endpoint using the requests.post method, passing in stream=True
|
68 |
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
|
|
63 |
chat_counter+=1
|
64 |
|
65 |
history.append(inputs)
|
66 |
+
print(f"Logging : openai_gpt4_key is - {openai_gpt4_key}")
|
67 |
print(f"Logging : payload is - {payload}")
|
68 |
# make a POST request to the API endpoint using the requests.post method, passing in stream=True
|
69 |
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|