unknown commited on
Commit
1b115bb
·
1 Parent(s): 4fc00f2

update webpage title

Browse files
Files changed (2) hide show
  1. app.py +13 -4
  2. images/lamm.png +0 -0
app.py CHANGED
@@ -152,13 +152,22 @@ def reset_state():
152
 
153
 
154
  with gr.Blocks(scale=4) as demo:
155
- gr.HTML("""<h1 align="center">LAMM</h1>""")
 
 
 
 
 
 
 
 
 
156
 
157
  with gr.Row(scale=1):
158
  with gr.Column(scale=1):
159
  image_path = gr.Image(type="filepath", label="Image", value=None)
 
160
 
161
- chatbot = gr.Chatbot().style(height=300)
162
  with gr.Row():
163
  with gr.Column(scale=4):
164
  with gr.Column(scale=12):
@@ -170,9 +179,9 @@ with gr.Blocks(scale=4) as demo:
170
  resubmitBtn = gr.Button("Resubmit", variant="primary")
171
  with gr.Column(scale=1):
172
  emptyBtn = gr.Button("Clear History")
173
- max_length = gr.Slider(0, 400, value=256, step=1.0, label="Maximum length", interactive=True)
174
  top_p = gr.Slider(0, 1, value=0.01, step=0.01, label="Top P", interactive=True)
175
- temperature = gr.Slider(0, 1, value=1.0, step=0.01, label="Temperature", interactive=True)
176
 
177
  history = gr.State([])
178
  modality_cache = gr.State([])
 
152
 
153
 
154
  with gr.Blocks(scale=4) as demo:
155
+ gr.HTML("""<h1><img src="images/lamm.png"/></h1>""")
156
+ gr.Markdown(
157
+ """
158
+ ![LAMM](images/lamm.png)
159
+ <p>
160
+ <img src="images/lamm.png"/>
161
+ <a href="https://arxiv.org/pdf/2306.06687.pdf" target="_blank"><img src="https://img.shields.io/badge/arxiv-PDF-red"/></a> <a href="https://openlamm.github.io" target="_blank"><img src="https://img.shields.io/badge/LAMM-Page-blue"/></a> <a href="https://www.youtube.com/watch?v=M7XlIe8hhPk" target="_blank"><img src="https://img.shields.io/badge/video-Youtube-red"/></a> <a href="https://www.bilibili.com/video/BV1kN411D7kt/?share_source=copy_web&vd_source=ab4c734425ed0114898300f2c037ac0b" target="_blank"><img src="https://img.shields.io/badge/video-Bilibili-blue"/> <a href="https://opendatalab.com/LAMM" target="_blank"><img src="https://img.shields.io/badge/Data-Download-green"/></a> <a href="https://huggingface.co/openlamm" target="_blank"><img src="https://img.shields.io/badge/Models-huggingface-yellow"/></a> <a href="https://github.com/OpenLAMM/LAMM" target="_blank"><img src="https://img.shields.io/badge/Repo-Github-white"/></a> <img src="https://img.shields.io/github/stars/OpenLAMM/LAMM.svg?style=social&label=Star"/>
162
+ </p>
163
+ Start typing below to see the output.
164
+ """)
165
 
166
  with gr.Row(scale=1):
167
  with gr.Column(scale=1):
168
  image_path = gr.Image(type="filepath", label="Image", value=None)
169
+ chatbot = gr.Chatbot(scale=1).style(height=600)
170
 
 
171
  with gr.Row():
172
  with gr.Column(scale=4):
173
  with gr.Column(scale=12):
 
179
  resubmitBtn = gr.Button("Resubmit", variant="primary")
180
  with gr.Column(scale=1):
181
  emptyBtn = gr.Button("Clear History")
182
+ max_length = gr.Slider(0, 600, value=256, step=1.0, label="Maximum length", interactive=True)
183
  top_p = gr.Slider(0, 1, value=0.01, step=0.01, label="Top P", interactive=True)
184
+ temperature = gr.Slider(0, 1, value=0.9, step=0.01, label="Temperature", interactive=True)
185
 
186
  history = gr.State([])
187
  modality_cache = gr.State([])
images/lamm.png ADDED