seawolf2357 commited on
Commit
ec69c0c
·
verified ·
1 Parent(s): 41a7b58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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. Switching to secondary model.")
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: