John Smith commited on
Commit
53e4163
·
1 Parent(s): 5851e76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,8 +1,7 @@
1
  import gradio as gr
2
 
3
- #def greet(name):
4
- #return "Hello " + name + "!!"
5
 
6
- #iface = gr.Interface(fn=greet, inputs="text", outputs="text", title="Hello world")
7
- iface = gr.Interface(title="Hello world")
8
- iface.launch()
 
1
  import gradio as gr
2
 
3
+ def echo(message, history):
4
+ return message
5
 
6
+ demo = gr.ChatInterface(fn=echo, examples=["hello", "hola", "merhaba"], title="Echo Bot")
7
+ demo.launch()