Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Fix Syntax Error
Browse files- chat_application/main.py +1 -1
chat_application/main.py
CHANGED
|
@@ -358,7 +358,7 @@ def ask_bot(room_id, bot, bot_display_name, initial_prompt, instruct_prompt , wa
|
|
| 358 |
except exceptions.TooManyRequests:
|
| 359 |
print(f"429 Rate Limit Exceeded")
|
| 360 |
socketio.sleep(wait_time)
|
| 361 |
-
wait_time
|
| 362 |
|
| 363 |
# Prevent Stack Overflow
|
| 364 |
if wait_time > 32:
|
|
|
|
| 358 |
except exceptions.TooManyRequests:
|
| 359 |
print(f"429 Rate Limit Exceeded")
|
| 360 |
socketio.sleep(wait_time)
|
| 361 |
+
wait_time *= 2
|
| 362 |
|
| 363 |
# Prevent Stack Overflow
|
| 364 |
if wait_time > 32:
|