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