Fangyu Liu commited on
Commit
8e61810
1 Parent(s): 000d979

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -159,7 +159,7 @@ def process_document(image, question):
159
  table = processor_deplot.decode(predictions[0], skip_special_tokens=True)
160
 
161
  # send prompt+table to LLM
162
- res = evaluate(table, question)
163
  return res
164
 
165
  description = "Demo for deplot+llm for QA or summarisation. To use it, simply upload your image and type a question and click 'submit', or click one of the examples to load them. Read more at the links below."
 
159
  table = processor_deplot.decode(predictions[0], skip_special_tokens=True)
160
 
161
  # send prompt+table to LLM
162
+ res = evaluate(table.replace("<0x0A>", "\n"), question)
163
  return res
164
 
165
  description = "Demo for deplot+llm for QA or summarisation. To use it, simply upload your image and type a question and click 'submit', or click one of the examples to load them. Read more at the links below."