rosemariafontana commited on
Commit
ae3578f
Β·
verified Β·
1 Parent(s): f3e1856

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def parse_ticket_image(image, question):
55
 
56
  questions = [
57
  "What is the ticket number?",
58
- "What is the type of grain (For example: corn, soy, wheat)?",
59
  "What is the date?",
60
  "What is the time?",
61
  "What is the gross weight?",
@@ -72,6 +72,7 @@ def parse_ticket_image(image, question):
72
  # Use the model to answer each question
73
  answers = {}
74
  for q in questions:
 
75
  answer_text = process_question(q, document)
76
  print(f"Answer Text extracted here: {answer_text}")
77
  answers[q] = answer_text
 
55
 
56
  questions = [
57
  "What is the ticket number?",
58
+ "What is the type of grain (For example: corn, soybeans, wheat)?",
59
  "What is the date?",
60
  "What is the time?",
61
  "What is the gross weight?",
 
72
  # Use the model to answer each question
73
  answers = {}
74
  for q in questions:
75
+ print(f"Question: {q}")
76
  answer_text = process_question(q, document)
77
  print(f"Answer Text extracted here: {answer_text}")
78
  answers[q] = answer_text