Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def echo(message, history):
|
4 |
+
return message["text"]
|
5 |
+
|
6 |
+
demo = gr.ChatInterface(fn=echo,
|
7 |
+
examples=[{"text": "hello"}, {"text": "hola"}, {"text": "merhaba"}],
|
8 |
+
title="Echo Bot",
|
9 |
+
multimodal=True)
|
10 |
+
demo.launch()
|