Fangyu Liu commited on
Commit
8a49fd6
1 Parent(s): ac0b0ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -163,7 +163,7 @@ def process_document(image, question):
163
 
164
  # send prompt+table to LLM
165
  res = evaluate(table, question)
166
- print (res)
167
 
168
  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."
169
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2212.10505' target='_blank'>DePlot: One-shot visual language reasoning by plot-to-table translation</a></p>"
 
163
 
164
  # send prompt+table to LLM
165
  res = evaluate(table, question)
166
+ return res
167
 
168
  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."
169
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2212.10505' target='_blank'>DePlot: One-shot visual language reasoning by plot-to-table translation</a></p>"