repd79 commited on
Commit
0932eb9
verified
1 Parent(s): 1fe506c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,8 +59,8 @@ def respond(
59
  logging.info("Respuesta generada correctamente.")
60
 
61
  except Exception as e:
62
- logging.error(f"Error durante la generaci贸n de texto: {e}")
63
- yield "Hubo un error al generar la respuesta. Intenta nuevamente."
64
 
65
  """
66
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
 
59
  logging.info("Respuesta generada correctamente.")
60
 
61
  except Exception as e:
62
+ logging.error(f"Error durante la generaci贸n de texto: {e}", exc_info=True)
63
+ yield f"Error: {str(e)}. Por favor, int茅ntalo nuevamente."
64
 
65
  """
66
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface