Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -224,6 +224,7 @@ with gr.Blocks() as demo:
|
|
| 224 |
with gr.Column():
|
| 225 |
with gr.Row():
|
| 226 |
chat_input = gr.MultimodalTextbox(interactive=True, file_types=["image","video"], placeholder="Enter message or upload file...", show_label=False)
|
|
|
|
| 227 |
gr.Examples(examples=[
|
| 228 |
[{"files": [f"{cur_dir}/examples/code1.jpeg",f"{cur_dir}/examples/code2.jpeg"], "text": "Please pay attention to the movement of the object from the first image to the second image, then write a HTML code to show this movement."}],
|
| 229 |
[{"files": [f"{cur_dir}/examples/shub.jpg",f"{cur_dir}/examples/shuc.jpg",f"{cur_dir}/examples/shud.jpg"], "text": "what is fun about the images?"}],
|
|
@@ -237,11 +238,12 @@ with gr.Blocks() as demo:
|
|
| 237 |
|
| 238 |
], inputs=[chat_input], label="Compare images: ",examples_per_page=3)
|
| 239 |
with gr.Column():
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
|
|
|
| 245 |
with gr.Row():
|
| 246 |
upvote_btn = gr.Button(value="๐ Upvote", interactive=True)
|
| 247 |
downvote_btn = gr.Button(value="๐ Downvote", interactive=True)
|
|
|
|
| 224 |
with gr.Column():
|
| 225 |
with gr.Row():
|
| 226 |
chat_input = gr.MultimodalTextbox(interactive=True, file_types=["image","video"], placeholder="Enter message or upload file...", show_label=False)
|
| 227 |
+
with gr.Row():
|
| 228 |
gr.Examples(examples=[
|
| 229 |
[{"files": [f"{cur_dir}/examples/code1.jpeg",f"{cur_dir}/examples/code2.jpeg"], "text": "Please pay attention to the movement of the object from the first image to the second image, then write a HTML code to show this movement."}],
|
| 230 |
[{"files": [f"{cur_dir}/examples/shub.jpg",f"{cur_dir}/examples/shuc.jpg",f"{cur_dir}/examples/shud.jpg"], "text": "what is fun about the images?"}],
|
|
|
|
| 238 |
|
| 239 |
], inputs=[chat_input], label="Compare images: ",examples_per_page=3)
|
| 240 |
with gr.Column():
|
| 241 |
+
with gr.Row():
|
| 242 |
+
chatbot = gr.Chatbot(
|
| 243 |
+
[],
|
| 244 |
+
elem_id="chatbot",
|
| 245 |
+
bubble_full_width=False
|
| 246 |
+
)
|
| 247 |
with gr.Row():
|
| 248 |
upvote_btn = gr.Button(value="๐ Upvote", interactive=True)
|
| 249 |
downvote_btn = gr.Button(value="๐ Downvote", interactive=True)
|