Updated app,py
Browse files
app.py
CHANGED
@@ -113,7 +113,9 @@ async def on_chat_start():
|
|
113 |
os.remove(temp_file_path)
|
114 |
|
115 |
except Exception as e:
|
116 |
-
await cl.Message(f"An error occurred while processing the PDF
|
|
|
|
|
117 |
|
118 |
@cl.on_message
|
119 |
async def on_message(message: cl.Message):
|
|
|
113 |
os.remove(temp_file_path)
|
114 |
|
115 |
except Exception as e:
|
116 |
+
await cl.Message(f"An error occurred while processing the PDF: {str(e)}").send()
|
117 |
+
import traceback
|
118 |
+
await cl.Message(f"Traceback: {traceback.format_exc()}").send()
|
119 |
|
120 |
@cl.on_message
|
121 |
async def on_message(message: cl.Message):
|