opt
Browse files
app.py
CHANGED
@@ -185,7 +185,7 @@ with Blocks() as app:
|
|
185 |
Markdown("# 小软Softie")
|
186 |
with Row():
|
187 |
with Column(scale=3, min_width=500):
|
188 |
-
chatbot = Chatbot(type="messages", avatar_images=(None, "avatar.jpg"), scale=3, min_height=
|
189 |
textbox = MultimodalTextbox(file_types=[".jpg", ".jpeg", ".png"], file_count="multiple", stop_btn=True, show_label=False, autofocus=False, placeholder="在此输入内容")
|
190 |
with Column(scale=1, min_width=300):
|
191 |
with Column(scale=0):
|
@@ -196,7 +196,7 @@ with Blocks() as app:
|
|
196 |
with Column(scale=0):
|
197 |
user_id = Textbox(value=123456789, label="user_id", info="用户ID")
|
198 |
nickname = Textbox(value="用户1234", label="nickname", info="用户昵称")
|
199 |
-
json_messages = JSON([], max_height=
|
200 |
|
201 |
## NOT SUPPORT IN GRADIO 5.0.1
|
202 |
# chatbot.clear(
|
|
|
185 |
Markdown("# 小软Softie")
|
186 |
with Row():
|
187 |
with Column(scale=3, min_width=500):
|
188 |
+
chatbot = Chatbot(type="messages", avatar_images=(None, "avatar.jpg"), scale=3, min_height=640, min_width=500, show_label=False, show_copy_button=True, show_copy_all_button=True)
|
189 |
textbox = MultimodalTextbox(file_types=[".jpg", ".jpeg", ".png"], file_count="multiple", stop_btn=True, show_label=False, autofocus=False, placeholder="在此输入内容")
|
190 |
with Column(scale=1, min_width=300):
|
191 |
with Column(scale=0):
|
|
|
196 |
with Column(scale=0):
|
197 |
user_id = Textbox(value=123456789, label="user_id", info="用户ID")
|
198 |
nickname = Textbox(value="用户1234", label="nickname", info="用户昵称")
|
199 |
+
json_messages = JSON([], max_height=25, label="json_messages")
|
200 |
|
201 |
## NOT SUPPORT IN GRADIO 5.0.1
|
202 |
# chatbot.clear(
|