ysharma HF staff commited on
Commit
86055e1
·
verified ·
1 Parent(s): 870d448

Create app.py

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