WebashalarForML commited on
Commit
60ceda4
·
verified ·
1 Parent(s): 409d3df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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)