moevis commited on
Commit
4c41bab
·
verified ·
1 Parent(s): cf1977f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -308,9 +308,9 @@ def chat(system_prompt, user_text, audio_file, history, max_tokens, temperature,
308
  if response.status_code == 404:
309
  error_msg += " - vLLM service not ready"
310
  elif response.status_code == 400:
311
- error_msg += " - Bad request"
312
  elif response.status_code == 500:
313
- error_msg += " - Model error"
314
  # Update the last message with error
315
  history[-1]["content"] = error_msg
316
  yield history
 
308
  if response.status_code == 404:
309
  error_msg += " - vLLM service not ready"
310
  elif response.status_code == 400:
311
+ error_msg += f" - Bad request ({response.text})"
312
  elif response.status_code == 500:
313
+ error_msg += f" - Model error ({response.text})"
314
  # Update the last message with error
315
  history[-1]["content"] = error_msg
316
  yield history