Shreyas094 commited on
Commit
3e9d376
·
verified ·
1 Parent(s): e482991

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -495,11 +495,6 @@ After writing the document, please provide a list of sources used in your respon
495
  chunk = message.choices[0].delta.content
496
  main_content += chunk
497
  yield main_content, "" # Yield partial main content without sources
498
- except Exception as e:
499
- logging.error(f"Error in get_response_with_search: {str(e)}")
500
- logging.error(traceback.format_exc())
501
- yield "I'm sorry, but I encountered an error while processing your request. Please try again later.", ""
502
-
503
  finally:
504
  # Clean up the temporary database
505
  cleanup_web_search_database(temp_dir)
 
495
  chunk = message.choices[0].delta.content
496
  main_content += chunk
497
  yield main_content, "" # Yield partial main content without sources
 
 
 
 
 
498
  finally:
499
  # Clean up the temporary database
500
  cleanup_web_search_database(temp_dir)