Spaces:
Runtime error
Runtime error
update demo
Browse files
minigemini/serve/gradio_web_server.py
CHANGED
|
@@ -280,7 +280,7 @@ def http_bot(state, model_selector, temperature, top_p, max_new_tokens, gen_imag
|
|
| 280 |
fout.write(json.dumps(data) + "\n")
|
| 281 |
|
| 282 |
title_markdown = ("""
|
| 283 |
-
# Official demo for
|
| 284 |
[[Project Page]](https://mini-gemini.github.io/) [[Paper]](https://arxiv.org/abs/2403.18814) [[Code]](https://github.com/dvlab-research/MiniGemini) [[Model]](https://huggingface.co/collections/YanweiLi/mini-gemini-6603c50b9b43d044171d0854) [[Data]](https://huggingface.co/collections/YanweiLi/mini-gemini-data-660463ea895a01d8f367624e) <br>
|
| 285 |
This is MGM-13B-HD version. The MGM-34B-HD is deployed at [[here]](http://10.81.134.110:7860/)
|
| 286 |
""")
|
|
@@ -319,7 +319,7 @@ block_css = """
|
|
| 319 |
|
| 320 |
def build_demo(embed_mode, cur_dir=None, concurrency_count=10):
|
| 321 |
textbox = gr.Textbox(show_label=False, placeholder="Enter text and press ENTER", container=False)
|
| 322 |
-
with gr.Blocks(title="
|
| 323 |
state = gr.State()
|
| 324 |
|
| 325 |
if not embed_mode:
|
|
@@ -362,7 +362,7 @@ def build_demo(embed_mode, cur_dir=None, concurrency_count=10):
|
|
| 362 |
with gr.Column(scale=7):
|
| 363 |
chatbot = gr.Chatbot(
|
| 364 |
elem_id="chatbot",
|
| 365 |
-
label="
|
| 366 |
height=940,
|
| 367 |
layout="panel",
|
| 368 |
)
|
|
|
|
| 280 |
fout.write(json.dumps(data) + "\n")
|
| 281 |
|
| 282 |
title_markdown = ("""
|
| 283 |
+
# Official demo for "Mini-Gemini: Mining the Potential of Multi-modality Vision Language Models"
|
| 284 |
[[Project Page]](https://mini-gemini.github.io/) [[Paper]](https://arxiv.org/abs/2403.18814) [[Code]](https://github.com/dvlab-research/MiniGemini) [[Model]](https://huggingface.co/collections/YanweiLi/mini-gemini-6603c50b9b43d044171d0854) [[Data]](https://huggingface.co/collections/YanweiLi/mini-gemini-data-660463ea895a01d8f367624e) <br>
|
| 285 |
This is MGM-13B-HD version. The MGM-34B-HD is deployed at [[here]](http://10.81.134.110:7860/)
|
| 286 |
""")
|
|
|
|
| 319 |
|
| 320 |
def build_demo(embed_mode, cur_dir=None, concurrency_count=10):
|
| 321 |
textbox = gr.Textbox(show_label=False, placeholder="Enter text and press ENTER", container=False)
|
| 322 |
+
with gr.Blocks(title="MGM", theme=gr.themes.Default(), css=block_css) as demo:
|
| 323 |
state = gr.State()
|
| 324 |
|
| 325 |
if not embed_mode:
|
|
|
|
| 362 |
with gr.Column(scale=7):
|
| 363 |
chatbot = gr.Chatbot(
|
| 364 |
elem_id="chatbot",
|
| 365 |
+
label="MGM Chatbot",
|
| 366 |
height=940,
|
| 367 |
layout="panel",
|
| 368 |
)
|