gerasdf commited on
Commit
45cec28
·
verified ·
1 Parent(s): 4207581

trying to understand multimodal

Browse files
Files changed (1) hide show
  1. app.py +11 -0
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()