bharatcoder commited on
Commit
68a5585
·
verified ·
1 Parent(s): 3292fea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,12 +31,12 @@ try:
31
  doc_count = collection.count()
32
 
33
  if doc_count == 0:
34
- return False, f"Collection '{config.COLLECTION_NAME}' exists but is empty. Run ingest_studies.py to populate it."
35
 
36
  print(f"✅ Connected to collection '{config.COLLECTION_NAME}' with {doc_count} documents")
37
 
38
  except Exception as e:
39
- return False, f"Collection '{config.COLLECTION_NAME}' not found. Run ingest_studies.py first. Error: {str(e)}"
40
 
41
 
42
  class EmbeddingGemmaPrompts:
 
31
  doc_count = collection.count()
32
 
33
  if doc_count == 0:
34
+ print(f"Collection '{config.COLLECTION_NAME}' exists but is empty. Run ingest_studies.py to populate it.")
35
 
36
  print(f"✅ Connected to collection '{config.COLLECTION_NAME}' with {doc_count} documents")
37
 
38
  except Exception as e:
39
+ print(f"Collection '{config.COLLECTION_NAME}' not found. Run ingest_studies.py first. Error: {str(e)}")
40
 
41
 
42
  class EmbeddingGemmaPrompts: