Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -204,8 +204,8 @@ def process_document(image, question, llm):
|
|
204 |
|
205 |
theme = gr.themes.Monochrome(
|
206 |
primary_hue="indigo",
|
207 |
-
|
208 |
-
|
209 |
radius_size=gr.themes.sizes.radius_sm,
|
210 |
font=[gr.themes.GoogleFont("Open Sans"), "ui-sans-serif", "system-ui", "sans-serif"],
|
211 |
)
|
@@ -215,7 +215,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
215 |
gr.Markdown(
|
216 |
"""<h1><center>DePlot+LLM: Multimodal chain-of-thought reasoning on plots</center></h1>
|
217 |
<p>
|
218 |
-
This is a demo of DePlot+LLM for QA and summarisation. <a href='https://arxiv.org/abs/2212.10505' target='_blank'>DePlot</a> 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 LLMs are <a href='https://huggingface.co/spaces/tloen/alpaca-lora' target='_blank'>alpaca-lora</a>, <a href='https://huggingface.co/google/flan-ul2' target='_blank'>flan-ul2</a>, and <a href='https://openai.com/blog/chatgpt' target='_blank'>gpt-3.5-turbo
|
219 |
</p>
|
220 |
"""
|
221 |
)
|
|
|
204 |
|
205 |
theme = gr.themes.Monochrome(
|
206 |
primary_hue="indigo",
|
207 |
+
secondary_hue="blue",
|
208 |
+
neutral_hue="slate",
|
209 |
radius_size=gr.themes.sizes.radius_sm,
|
210 |
font=[gr.themes.GoogleFont("Open Sans"), "ui-sans-serif", "system-ui", "sans-serif"],
|
211 |
)
|
|
|
215 |
gr.Markdown(
|
216 |
"""<h1><center>DePlot+LLM: Multimodal chain-of-thought reasoning on plots</center></h1>
|
217 |
<p>
|
218 |
+
This is a demo of DePlot+LLM for QA and summarisation. <a href='https://arxiv.org/abs/2212.10505' target='_blank'>DePlot</a> 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 LLMs are <a href='https://huggingface.co/spaces/tloen/alpaca-lora' target='_blank'>alpaca-lora</a>, <a href='https://huggingface.co/google/flan-ul2' target='_blank'>flan-ul2</a>, and <a href='https://openai.com/blog/chatgpt' target='_blank'>gpt-3.5-turbo</a>. 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.
|
219 |
</p>
|
220 |
"""
|
221 |
)
|