vkumartr commited on
Commit
aa612b2
·
verified ·
1 Parent(s): ffcb9c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -172,7 +172,7 @@ def extract_text_from_file(
172
  "document": existing_document
173
  }
174
  # Fetch dynamic schema based on document type
175
- schema_doc = db.schema_collection.find_one({"document_type": document_type})
176
  if not schema_doc:
177
  raise ValueError("No schema found for the given document type")
178
 
 
172
  "document": existing_document
173
  }
174
  # Fetch dynamic schema based on document type
175
+ schema_doc = db.invoice_collection.find_one({"document_type": document_type})
176
  if not schema_doc:
177
  raise ValueError("No schema found for the given document type")
178