Update app.py
Browse files
app.py
CHANGED
|
@@ -131,7 +131,7 @@ def chat_with_assistant(user_input, chat_history, bot_id, workspace_id):
|
|
| 131 |
return assistant_content, bot_id, workspace_id
|
| 132 |
|
| 133 |
# If we get a 403, it could be because the bot/workspace IDs are invalid/expired
|
| 134 |
-
elif response.status_code ==
|
| 135 |
raise Exception("Invalid or expired bot ID.")
|
| 136 |
|
| 137 |
# Other errors
|
|
|
|
| 131 |
return assistant_content, bot_id, workspace_id
|
| 132 |
|
| 133 |
# If we get a 403, it could be because the bot/workspace IDs are invalid/expired
|
| 134 |
+
elif response.status_code == 403:
|
| 135 |
raise Exception("Invalid or expired bot ID.")
|
| 136 |
|
| 137 |
# Other errors
|