Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -212,15 +212,15 @@ def process_document(image, question, llm):
|
|
212 |
else:
|
213 |
return [table, res]
|
214 |
|
215 |
-
theme = gr.themes.Monochrome(
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
)
|
222 |
|
223 |
-
with gr.Blocks(theme=
|
224 |
with gr.Column():
|
225 |
# gr.Markdown(
|
226 |
# """<h1><center>DePlot+LLM: Multimodal chain-of-thought reasoning on plots</center></h1>
|
@@ -258,7 +258,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
258 |
examples=[
|
259 |
["deplot_case_study_6.png", "Rank the four methods according to average model performances. By how much does deplot outperform the second strongest approach on average across the two sets? Show the computation.", "gpt-3.5-turbo"],
|
260 |
["deplot_case_study_4.png", "What are the acceptance rates? And how does the acceptance change over the years?", "gpt-3.5-turbo"],
|
261 |
-
["deplot_case_study_m1.png", "Summarise the chart for me please.", "gpt-3.5-turbo"],
|
262 |
#["deplot_case_study_m1.png", "What is the sum of numbers of Indonesia and Ireland? Remember to think step by step.", "alpaca-lora"],
|
263 |
#["deplot_case_study_3.png", "By how much did China's growth rate drop? Think step by step.", "alpaca-lora"],
|
264 |
#["deplot_case_study_4.png", "How many papers are submitted in 2020?", "flan-ul2"],
|
|
|
212 |
else:
|
213 |
return [table, res]
|
214 |
|
215 |
+
# theme = gr.themes.Monochrome(
|
216 |
+
# primary_hue="indigo",
|
217 |
+
# secondary_hue="blue",
|
218 |
+
# neutral_hue="slate",
|
219 |
+
# radius_size=gr.themes.sizes.radius_sm,
|
220 |
+
# font=[gr.themes.GoogleFont("Open Sans"), "ui-sans-serif", "system-ui", "sans-serif"],
|
221 |
+
# )
|
222 |
|
223 |
+
with gr.Blocks(theme="gradio/soft") as demo:
|
224 |
with gr.Column():
|
225 |
# gr.Markdown(
|
226 |
# """<h1><center>DePlot+LLM: Multimodal chain-of-thought reasoning on plots</center></h1>
|
|
|
258 |
examples=[
|
259 |
["deplot_case_study_6.png", "Rank the four methods according to average model performances. By how much does deplot outperform the second strongest approach on average across the two sets? Show the computation.", "gpt-3.5-turbo"],
|
260 |
["deplot_case_study_4.png", "What are the acceptance rates? And how does the acceptance change over the years?", "gpt-3.5-turbo"],
|
261 |
+
#["deplot_case_study_m1.png", "Summarise the chart for me please.", "gpt-3.5-turbo"],
|
262 |
#["deplot_case_study_m1.png", "What is the sum of numbers of Indonesia and Ireland? Remember to think step by step.", "alpaca-lora"],
|
263 |
#["deplot_case_study_3.png", "By how much did China's growth rate drop? Think step by step.", "alpaca-lora"],
|
264 |
#["deplot_case_study_4.png", "How many papers are submitted in 2020?", "flan-ul2"],
|