Spaces:
Runtime error
Runtime error
import gradio as gr | |
def echo(message, history): | |
return message["text"] | |
demo = gr.ChatInterface(fn=echo, | |
examples=[{"text": "hello", file:["https://pypi-camo.freetls.fastly.net/a95ef5913dc4cc84d2155ff690a0fa0d4c33d7e2/68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f67726164696f2d6170702f67726164696f2f6d61696e2f726561646d655f66696c65732f67726164696f2e737667"]}, | |
{"text": "hola", file:["https://avatars.githubusercontent.com/u/51063788?v=4"]}, | |
{"text": "merhaba", file:["https://miro.medium.com/v2/resize:fit:930/1*OaV5eb_DRNIJQal_B7-YDQ.jpeg"]}, | |
{"text": "ok", file:["https://www.gradio.app/_app/immutable/assets/header-image.DJQS6l6U.jpg"]}, | |
{"text": "Why?", file:["https://miro.medium.com/v2/da:true/resize:fit:1024/1*iJArJfAGlqMj7Uz7OU-Hdw.gif"]}, | |
{"text": "great!", file:["https://digitalpress.fra1.cdn.digitaloceanspaces.com/mhujhsj/2022/09/seaborn.gif"]}, | |
{"text": "Now!", file:["https://user-images.githubusercontent.com/1778297/158659207-04015a06-5cad-4ee1-bdbd-291054551540.png"]}, | |
{"text": "Cool", file:["https://user-images.githubusercontent.com/1778297/158659207-04015a06-5cad-4ee1-bdbd-291054551540.png"]}], | |
title="Echo Bot", | |
multimodal=True) | |
demo.launch() |