Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -253,6 +253,11 @@ def chat_with_assistant(user_input, chat_history, bot_id, workspace_id):
|
|
| 253 |
print(f"Received 403 error. Need to create new IDs.")
|
| 254 |
need_new_ids = True
|
| 255 |
break
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
|
| 257 |
# Handle network errors or timeouts (just retry)
|
| 258 |
elif response.status_code in [443, 408, 502, 503, 504]:
|
|
|
|
| 253 |
print(f"Received 403 error. Need to create new IDs.")
|
| 254 |
need_new_ids = True
|
| 255 |
break
|
| 256 |
+
|
| 257 |
+
elif response.status_code == 403:
|
| 258 |
+
print(f"Received 403 error. Need to create new IDs.")
|
| 259 |
+
need_new_ids = True
|
| 260 |
+
break
|
| 261 |
|
| 262 |
# Handle network errors or timeouts (just retry)
|
| 263 |
elif response.status_code in [443, 408, 502, 503, 504]:
|