ysharma HF Staff commited on
Commit
0787ed8
·
verified ·
1 Parent(s): 5379411

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -5,14 +5,14 @@ def echo(message, history):
5
 
6
  demo = gr.ChatInterface(fn=echo,
7
  multimodal=True,
8
- examples=[{"text": "hello", "files":["https://miro.medium.com/v2/resize:fit:930/1*OaV5eb_DRNIJQal_B7-YDQ.jpeg"]},
9
- {"text": "hola", "files":["https://miro.medium.com/v2/resize:fit:930/1*OaV5eb_DRNIJQal_B7-YDQ.jpeg"]},
10
- {"text": "merhaba", "files":["https://miro.medium.com/v2/resize:fit:930/1*OaV5eb_DRNIJQal_B7-YDQ.jpeg"]},
11
- {"text": "ok", "files":["https://www.gradio.app/_app/immutable/assets/header-image.DJQS6l6U.jpg"]},
12
- {"text": "Why?", "files":["https://miro.medium.com/v2/da:true/resize:fit:1024/1*iJArJfAGlqMj7Uz7OU-Hdw.gif"]},
13
- {"text": "great!", "files":["https://digitalpress.fra1.cdn.digitaloceanspaces.com/mhujhsj/2022/09/seaborn.gif"]},
14
- {"text": "Now!", "files":["https://user-images.githubusercontent.com/1778297/158659207-04015a06-5cad-4ee1-bdbd-291054551540.png"]},
15
- {"text": "Cool", "files":["https://user-images.githubusercontent.com/1778297/158659207-04015a06-5cad-4ee1-bdbd-291054551540.png"]}],
16
  title="Echo Bot",
17
  )
18
  demo.launch()
 
5
 
6
  demo = gr.ChatInterface(fn=echo,
7
  multimodal=True,
8
+ examples=[[{"text": "hello", "files":["https://miro.medium.com/v2/resize:fit:930/1*OaV5eb_DRNIJQal_B7-YDQ.jpeg"]}],
9
+ [{"text": "hola", "files":["https://miro.medium.com/v2/resize:fit:930/1*OaV5eb_DRNIJQal_B7-YDQ.jpeg"]}],
10
+ [{"text": "merhaba", "files":["https://miro.medium.com/v2/resize:fit:930/1*OaV5eb_DRNIJQal_B7-YDQ.jpeg"]}],
11
+ [{"text": "ok", "files":["https://www.gradio.app/_app/immutable/assets/header-image.DJQS6l6U.jpg"]}],
12
+ [{"text": "Why?", "files":["https://miro.medium.com/v2/da:true/resize:fit:1024/1*iJArJfAGlqMj7Uz7OU-Hdw.gif"]}],
13
+ [{"text": "great!", "files":["https://digitalpress.fra1.cdn.digitaloceanspaces.com/mhujhsj/2022/09/seaborn.gif"]}],
14
+ [{"text": "Now!", "files":["https://user-images.githubusercontent.com/1778297/158659207-04015a06-5cad-4ee1-bdbd-291054551540.png"]}],
15
+ [{"text": "Cool", "files":["https://user-images.githubusercontent.com/1778297/158659207-04015a06-5cad-4ee1-bdbd-291054551540.png"]}]],
16
  title="Echo Bot",
17
  )
18
  demo.launch()