fl399 commited on
Commit
f6bf635
1 Parent(s): 30f2bef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -204,7 +204,7 @@ def process_document(image, question, llm):
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"],
@@ -215,16 +215,10 @@ 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 for 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> and <a href='https://huggingface.co/google/flan-ul2' target='_blank'>flan-ul2</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
  )
222
- # #with gr.Row():
223
- # llm = gr.Dropdown(
224
- # ["alpaca-lora", "flan-ul2"], label="LLM", info="We will add more LLMs.")
225
- # num_shot = gr.Dropdown(
226
- # ["0-shot", "1-shot"], label="shots", info="How many example tables in the prompt?")
227
- # openai_api = gr.Textbox(label="openai api (if using OpenAI models, otherwise leave empty)")
228
 
229
  with gr.Row():
230
  with gr.Column(scale=2):
 
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"],
 
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
  )
 
 
 
 
 
 
222
 
223
  with gr.Row():
224
  with gr.Column(scale=2):