Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,10 @@ import gradio as gr
|
|
2 |
|
3 |
with gr.Blocks() as demo:
|
4 |
gr.Chatbot(value=[["hey", "hi"], ["hey", "hi"]])
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
img1 = gr.Image()
|
10 |
img2 = gr.Image()
|
11 |
img1.change(lambda x:x, img1, img2)
|
|
|
2 |
|
3 |
with gr.Blocks() as demo:
|
4 |
gr.Chatbot(value=[["hey", "hi"], ["hey", "hi"]])
|
5 |
+
gr.Chatbot(value=[
|
6 |
+
{"role": "assistant", "message": "How can I help?"},
|
7 |
+
{"role": "user", "message": "Save me"},
|
8 |
+
], type="messages")
|
9 |
img1 = gr.Image()
|
10 |
img2 = gr.Image()
|
11 |
img1.change(lambda x:x, img1, img2)
|