Update app.py
Browse files
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 "
|
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
|