niting089 commited on
Commit
5ff7c13
1 Parent(s): 2df233c

Updated app,py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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. Please try again.").send()
 
 
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):