sitammeur commited on
Commit
b7c19a9
·
verified ·
1 Parent(s): 2924bfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -5,7 +5,9 @@ from model import answer_question
5
 
6
  # Image and text inputs for the interface
7
  image = gr.Image(type="pil", label="Image")
8
- question = gr.Textbox(label="Question")
 
 
9
 
10
  # Output for the interface
11
  answer = gr.Textbox(label="Predicted answer", show_label=True, show_copy_button=True)
@@ -19,8 +21,8 @@ examples = [
19
 
20
  # Title, description, and article for the interface
21
  title = "Visual Question Answering"
22
- description = "Gradio Demo for the MiniCPM Llama3 Vision Language Understanding and Generation model. This model can answer questions about images in natural language. To use it, simply upload your image and type a question and click 'submit', or click one of the examples to load them. Read more at the links below."
23
- article = "<p style='text-align: center'><a href='https://github.com/OpenBMB/MiniCPM-V' target='_blank'>Model GitHub Repo</a> | <a href='https://huggingface.co/openbmb/MiniCPM-Llama3-V-2_5' target='_blank'>Model Page</a></p>"
24
 
25
 
26
  # Launch the interface
 
5
 
6
  # Image and text inputs for the interface
7
  image = gr.Image(type="pil", label="Image")
8
+ question = gr.Textbox(
9
+ label="Question", placeholder="Enter your question here", interactive=True
10
+ )
11
 
12
  # Output for the interface
13
  answer = gr.Textbox(label="Predicted answer", show_label=True, show_copy_button=True)
 
21
 
22
  # Title, description, and article for the interface
23
  title = "Visual Question Answering"
24
+ description = "Gradio Demo for the MiniCPM-V 2.6 Vision Language Understanding and Generation model. This model can answer questions about images in natural language. To use it, simply upload your image and type a question and click 'submit', or click one of the examples to load them. Read more at the links below."
25
+ article = "<p style='text-align: center'><a href='https://github.com/OpenBMB/MiniCPM-V' target='_blank'>Model GitHub Repo</a> | <a href='https://huggingface.co/openbmb/MiniCPM-V-2_6' target='_blank'>Model Page</a></p>"
26
 
27
 
28
  # Launch the interface