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