Spaces:
Sleeping
Sleeping
WebashalarForML
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,9 @@ def process_file():
|
|
120 |
logging.info("Running backup model...")
|
121 |
|
122 |
LLMdata = {}
|
123 |
-
|
|
|
|
|
124 |
if extracted_text:
|
125 |
text = json_to_llm_str(extracted_text)
|
126 |
LLMdata = NER_Model(text)
|
|
|
120 |
logging.info("Running backup model...")
|
121 |
|
122 |
LLMdata = {}
|
123 |
+
extracted_text, processed_Img = extract_text_from_images(file_paths)
|
124 |
+
logging.info(f"Extracted text(Backup): {extracted_text}")
|
125 |
+
logging.info(f"Processed images(Backup): {processed_Img}")
|
126 |
if extracted_text:
|
127 |
text = json_to_llm_str(extracted_text)
|
128 |
LLMdata = NER_Model(text)
|