Update app.py
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ def predict(inputs, top_p, temperature, openai_api_key, chatbot=[], history=[],
|
|
128 |
history.append(inputs)
|
129 |
print(f"payload is - {payload}")
|
130 |
# make a POST request to the API endpoint using the requests.post method, passing in stream=True
|
131 |
-
response = requests.post(API_URL, headers=headers, json=payload, stream=True
|
132 |
# response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
133 |
|
134 |
token_counter = 0
|
|
|
128 |
history.append(inputs)
|
129 |
print(f"payload is - {payload}")
|
130 |
# make a POST request to the API endpoint using the requests.post method, passing in stream=True
|
131 |
+
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
132 |
# response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
133 |
|
134 |
token_counter = 0
|