update response code logging
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
|
61 |
print(f"payload is - {payload}")
|
62 |
# make a POST request to the API endpoint using the requests.post method, passing in stream=True
|
63 |
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
64 |
-
|
65 |
token_counter = 0
|
66 |
partial_words = ""
|
67 |
|
|
|
61 |
print(f"payload is - {payload}")
|
62 |
# make a POST request to the API endpoint using the requests.post method, passing in stream=True
|
63 |
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
64 |
+
print(f"response code - {response}")
|
65 |
token_counter = 0
|
66 |
partial_words = ""
|
67 |
|