Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
with gr.Blocks() as demo:
|
4 |
+
gr.Chatbot(value=[["hey", "hi"], ["hey", "hi"]])
|
5 |
+
gr.Chatbot(value=[
|
6 |
+
{"role": "assistant", "content": "How can I help?"},
|
7 |
+
{"role": "user", "content": "Save me"},
|
8 |
+
{"role": "user", "content": gr.Image("https://en.wikipedia.org/static/images/icons/wikipedia.png")},
|
9 |
+
], type="messages")
|
10 |
+
|
11 |
+
demo.launch()
|