abidlabs HF staff commited on
Commit
5269de3
·
verified ·
1 Parent(s): b0204c7

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
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()