Crackershoot commited on
Commit
111d6cf
·
verified ·
1 Parent(s): 0bae5c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def initialize_knowledge_base():
68
  if contents_to_add:
69
  try:
70
  # Using add_contents which is recommended for batch processing
71
- knowledge.add_contents(contents_to_add)
72
  logger.info(f"✅ Successfully added {len(contents_to_add)} PDFs to the knowledge base.")
73
  except Exception as e:
74
  logger.error(f"Failed to add PDFs to knowledge base: {e}")
 
68
  if contents_to_add:
69
  try:
70
  # Using add_contents which is recommended for batch processing
71
+ knowledge.add_content(contents_to_add)
72
  logger.info(f"✅ Successfully added {len(contents_to_add)} PDFs to the knowledge base.")
73
  except Exception as e:
74
  logger.error(f"Failed to add PDFs to knowledge base: {e}")