Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ def process_document(image, question):
|
|
162 |
#return res + "\n\n" + res.split("A:")[-1]
|
163 |
return [table, res.split("A:")[-1]]
|
164 |
|
165 |
-
description = "Demo for DePlot+LLM for QA and summarisation. The current underlying LLM is [alpaca-lora](https://huggingface.co/spaces/tloen/alpaca-lora). To use it, simply upload your image and type a question or instruction and click 'submit', or click one of the examples to load them. Read more at the links below."
|
166 |
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>"
|
167 |
|
168 |
demo = gr.Interface(
|
|
|
162 |
#return res + "\n\n" + res.split("A:")[-1]
|
163 |
return [table, res.split("A:")[-1]]
|
164 |
|
165 |
+
description = "Demo for DePlot+LLM for QA and summarisation. [DePlot](https://arxiv.org/abs/2212.10505) is an image-to-text model that converts plots and charts into a textual sequence. The sequence then is used to prompt LLM for chain-of-thought reasoning. The current underlying LLM is [alpaca-lora](https://huggingface.co/spaces/tloen/alpaca-lora). To use it, simply upload your image and type a question or instruction and click 'submit', or click one of the examples to load them. Read more at the links below."
|
166 |
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>"
|
167 |
|
168 |
demo = gr.Interface(
|