ysharma HF Staff commited on
Commit
d438aa9
·
verified ·
1 Parent(s): 87b0bee

Update app.py

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