DongfuJiang commited on
Commit
2161a6c
1 Parent(s): f0b67ad
Files changed (2) hide show
  1. app.py +6 -4
  2. barchart.jpeg +0 -0
app.py CHANGED
@@ -97,11 +97,13 @@ def bot(history):
97
  def build_demo():
98
  with gr.Blocks() as demo:
99
 
100
- gr.Markdown(""" # Mantis
101
- Mantis is a multimodal conversational AI model that can chat with users about images and text. It's optimized for multi-image reasoning, where inverleaved text and images can be used to generate responses.
 
102
 
103
- | [Github](https://github.com/TIGER-AI-Lab/Mantis) | [Blog](https://tiger-ai-lab.github.io/Blog/mantis) | [Models](https://huggingface.co/collections/TIGER-Lab/mantis-6619b0834594c878cdb1d6e4) |
104
- """)
 
105
  chatbot = gr.Chatbot(line_breaks=True)
106
  chat_input = gr.MultimodalTextbox(interactive=True, file_types=["image"], placeholder="Enter message or upload images. Please use <image> to indicate the position of uploaded images", show_label=True)
107
 
 
97
  def build_demo():
98
  with gr.Blocks() as demo:
99
 
100
+ with gr.Row():
101
+ gr.Markdown(""" # Mantis
102
+ Mantis is a multimodal conversational AI model that can chat with users about images and text. It's optimized for multi-image reasoning, where inverleaved text and images can be used to generate responses.
103
 
104
+ | [Github](https://github.com/TIGER-AI-Lab/Mantis) | [Blog](https://tiger-ai-lab.github.io/Blog/mantis) | [Models](https://huggingface.co/collections/TIGER-Lab/mantis-6619b0834594c878cdb1d6e4) |
105
+ """)
106
+ gr.Image("./barchart.jpeg", width=450)
107
  chatbot = gr.Chatbot(line_breaks=True)
108
  chat_input = gr.MultimodalTextbox(interactive=True, file_types=["image"], placeholder="Enter message or upload images. Please use <image> to indicate the position of uploaded images", show_label=True)
109
 
barchart.jpeg ADDED