Spaces:
Runtime error
Runtime error
Vision-CAIR
commited on
Commit
β’
6869e3d
1
Parent(s):
19f67eb
Update app.py
Browse files
app.py
CHANGED
@@ -93,9 +93,7 @@ def gradio_answer(chatbot, chat_state, img_list, num_beams, temperature):
|
|
93 |
|
94 |
title = """<h1 align="center">Demo of MiniGPT-4</h1>"""
|
95 |
description = """<h3>This is the demo of MiniGPT-4. Upload your images and start chatting!</h3>"""
|
96 |
-
article = """<
|
97 |
-
<strong>Code</strong>: <a href='https://github.com/Vision-CAIR/MiniGPT-4' target='_blank'>Here</a>
|
98 |
-
<strong>Project Page</strong>: <a href='https://minigpt-4.github.io/' target='_blank'>Here</a>
|
99 |
"""
|
100 |
|
101 |
#TODO show examples below
|
@@ -113,8 +111,8 @@ with gr.Blocks() as demo:
|
|
113 |
|
114 |
num_beams = gr.Slider(
|
115 |
minimum=1,
|
116 |
-
maximum=
|
117 |
-
value=
|
118 |
step=1,
|
119 |
interactive=True,
|
120 |
label="beam search numbers)",
|
|
|
93 |
|
94 |
title = """<h1 align="center">Demo of MiniGPT-4</h1>"""
|
95 |
description = """<h3>This is the demo of MiniGPT-4. Upload your images and start chatting!</h3>"""
|
96 |
+
article = """<p><a href='https://minigpt-4.github.io'><img src='https://img.shields.io/badge/Project-Page-Green'></a></p><p><a href='https://github.com/Vision-CAIR/MiniGPT-4'><img src='https://img.shields.io/badge/Github-Code-blue'></a></p><p><a href='https://github.com/TsuTikgiau/blip2-llm/blob/release_prepare/MiniGPT_4.pdf'><img src='https://img.shields.io/badge/Paper-PDF-red'></a></p>
|
|
|
|
|
97 |
"""
|
98 |
|
99 |
#TODO show examples below
|
|
|
111 |
|
112 |
num_beams = gr.Slider(
|
113 |
minimum=1,
|
114 |
+
maximum=5,
|
115 |
+
value=1,
|
116 |
step=1,
|
117 |
interactive=True,
|
118 |
label="beam search numbers)",
|