mingbaer commited on
Commit
3d47cbb
·
verified ·
1 Parent(s): ecc1e29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,5 +1,12 @@
1
  import gradio as gr
 
2
 
3
- chatbot = gr.ChatInterface()
 
 
 
 
 
4
 
5
  chatbot.launch()
 
 
1
  import gradio as gr
2
+ # first, add your import lines
3
 
4
+ def echo(message, history):
5
+ return message
6
+ # Code the function that your chatbot will run!
7
+
8
+ chatbot = gr.ChatInterface(echo)
9
+ # Use gradio to create an interface where your user can use ChatInterface --> needs a function as a parameter to run
10
 
11
  chatbot.launch()
12
+ # launches our chatbot