aliabid94 HF staff commited on
Commit
d27ec3d
·
verified ·
1 Parent(s): 5c97077

Update app.py

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