玙珲 commited on
Commit
f7211cd
·
1 Parent(s): fdd0b9c

adjustment

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -269,10 +269,10 @@ def build_demo(model_path: str):
269
  <center><font size=3><b>Ovis</b> has been open-sourced on <a href='https://huggingface.co/{model_path}'>😊 Huggingface</a> and <a href='https://github.com/AIDC-AI/Ovis'>🌟 GitHub</a>. If you find Ovis useful, a like❤️ or a star🌟 would be appreciated.</font></center>
270
  """
271
 
272
- prompt_input = gr.Textbox(label="Prompt", placeholder="Enter your text here and press ENTER", lines=3, container=False)
273
  with gr.Blocks(theme=gr.themes.Ocean()) as demo:
274
  gr.HTML(html_header)
275
- gr.Markdown("Note: you might have to increase the \"Max New Tokens\" and wait longer to obtain answer when Deep Thinking is enabled.")
276
 
277
  with gr.Row():
278
  with gr.Column(scale=4):
@@ -293,7 +293,7 @@ def build_demo(model_path: str):
293
  [os.path.join(CUR_DIR, "examples", "ovis2_math0.jpg"), "Each face of the polyhedron shown is either a triangle or a square. Each square borders 4 triangles, and each triangle borders 3 squares. The polyhedron has 6 squares. How many triangles does it have?\n\nEnd your response with 'Final answer: '."],
294
  [os.path.join(CUR_DIR, "examples", "ovis2_math1.jpg"), "A large square touches another two squares, as shown in the picture. The numbers inside the smaller squares indicate their areas. What is the area of the largest square?\n\nEnd your response with 'Final answer: '."],
295
  [os.path.join(CUR_DIR, "examples", "ovis2_figure0.png"), "Explain this model."],
296
- [os.path.join(CUR_DIR, "examples", "ovis2_figure1.png"), "Organize the notes about GRPO in the figure."],
297
  [os.path.join(CUR_DIR, "examples", "ovis2_multi0.jpg"), "Posso avere un frappuccino e un caffè americano di taglia M? Quanto costa in totale?"],
298
  ],
299
  inputs=[image_input, prompt_input]
 
269
  <center><font size=3><b>Ovis</b> has been open-sourced on <a href='https://huggingface.co/{model_path}'>😊 Huggingface</a> and <a href='https://github.com/AIDC-AI/Ovis'>🌟 GitHub</a>. If you find Ovis useful, a like❤️ or a star🌟 would be appreciated.</font></center>
270
  """
271
 
272
+ prompt_input = gr.Textbox(label="Prompt", placeholder="Enter your text here and press ENTER", lines=1, container=False)
273
  with gr.Blocks(theme=gr.themes.Ocean()) as demo:
274
  gr.HTML(html_header)
275
+ gr.Markdown("Note: you might have to increase \"Max New Tokens\" and wait longer to obtain answer when Deep Thinking is enabled.")
276
 
277
  with gr.Row():
278
  with gr.Column(scale=4):
 
293
  [os.path.join(CUR_DIR, "examples", "ovis2_math0.jpg"), "Each face of the polyhedron shown is either a triangle or a square. Each square borders 4 triangles, and each triangle borders 3 squares. The polyhedron has 6 squares. How many triangles does it have?\n\nEnd your response with 'Final answer: '."],
294
  [os.path.join(CUR_DIR, "examples", "ovis2_math1.jpg"), "A large square touches another two squares, as shown in the picture. The numbers inside the smaller squares indicate their areas. What is the area of the largest square?\n\nEnd your response with 'Final answer: '."],
295
  [os.path.join(CUR_DIR, "examples", "ovis2_figure0.png"), "Explain this model."],
296
+ # [os.path.join(CUR_DIR, "examples", "ovis2_figure1.png"), "Organize the notes about GRPO in the figure."],
297
  [os.path.join(CUR_DIR, "examples", "ovis2_multi0.jpg"), "Posso avere un frappuccino e un caffè americano di taglia M? Quanto costa in totale?"],
298
  ],
299
  inputs=[image_input, prompt_input]