abidlabs HF Staff commited on
Commit
5aa350d
·
verified ·
1 Parent(s): a110414

Create app.py

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