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