Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -195,7 +195,7 @@ class MyClient(discord.Client):
|
|
195 |
return await func()
|
196 |
except HTTPError as e:
|
197 |
if e.response.status_code == 503:
|
198 |
-
logging.warning(f"503 error encountered.
|
199 |
self.hf_client = hf_client_secondary
|
200 |
return await func() # Try immediately with the secondary model
|
201 |
else:
|
|
|
195 |
return await func()
|
196 |
except HTTPError as e:
|
197 |
if e.response.status_code == 503:
|
198 |
+
logging.warning(f"503 error encountered. Retrying with secondary model.")
|
199 |
self.hf_client = hf_client_secondary
|
200 |
return await func() # Try immediately with the secondary model
|
201 |
else:
|