yjernite HF Staff commited on
Commit
111bd9e
·
verified ·
1 Parent(s): 9e422ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -266,7 +266,7 @@ def _run_live_analysis(space_id: str, progress=gr.Progress(track_tqdm=True)):
266
  if status == 'scaledToZero':
267
  logging.info(f"Endpoint '{ENDPOINT_NAME}' is scaled to zero. Attempting to resume...")
268
  endpoint.resume()
269
- msg_503 = f"**Full Service Temporarily Unavailable**: but you can **browse existing reports** or **check back later!**\n\n The status of the Qwen2.5-Coder-32B-Instruct endpoint powering the analysis is currently: '{status}'\n\n" + ERROR_503_USER_MESSAGE
270
  yield (
271
  gr.update(value=msg_503, visible=True),
272
  gr.update(value="", visible=False),
 
266
  if status == 'scaledToZero':
267
  logging.info(f"Endpoint '{ENDPOINT_NAME}' is scaled to zero. Attempting to resume...")
268
  endpoint.resume()
269
+ msg_503 = f"**Full Service Temporarily Unavailable**: but you can **browse existing reports** or **check back later!**\n\n The status of the Qwen2.5-Coder-32B-Instruct endpoint powering the analysis is currently: <span style='color:red'>**{status}**</span>\n\n" + ERROR_503_USER_MESSAGE
270
  yield (
271
  gr.update(value=msg_503, visible=True),
272
  gr.update(value="", visible=False),