rosemariafontana commited on
Commit
92fa372
Β·
verified Β·
1 Parent(s): 4c1b460

made too many assumptions

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -44,6 +44,8 @@ def parse_ticket_image(image, question):
44
  try:
45
  if image.mode != "RGB":
46
  document = image.convert("RGB")
 
 
47
  except Exception as e:
48
  traceback.print_exc()
49
  error = str(e)
 
44
  try:
45
  if image.mode != "RGB":
46
  document = image.convert("RGB")
47
+ else:
48
+ document = image
49
  except Exception as e:
50
  traceback.print_exc()
51
  error = str(e)