Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def get_response(url, max_retries=5, backoff_factor=2):
|
|
| 61 |
|
| 62 |
elif response.status_code == 429: # Too many requests
|
| 63 |
wait_time = backoff_factor ** attempt # Exponential backoff
|
| 64 |
-
st.write(f"Rate limit hit. Retrying in {wait_time} seconds...")
|
| 65 |
time.sleep(wait_time)
|
| 66 |
|
| 67 |
else:
|
|
|
|
| 61 |
|
| 62 |
elif response.status_code == 429: # Too many requests
|
| 63 |
wait_time = backoff_factor ** attempt # Exponential backoff
|
| 64 |
+
#st.write(f"Rate limit hit. Retrying in {wait_time} seconds...")
|
| 65 |
time.sleep(wait_time)
|
| 66 |
|
| 67 |
else:
|