commonlemon commited on
Commit
0216182
·
verified ·
1 Parent(s): 5367ce5
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -11,5 +11,7 @@ def echo(message, history): #function for Gradio to call
11
 
12
  # defining chatbot
13
  chatbot = gr.ChatInterface(echo) #using gradio to quickly build a chatbot UI (w/ convo history & user input)
14
- # passing echo for gradio to call, not w/ () because I want Gradio to call it later, not right now
 
 
15
  chatbot.launch() #launch chatbot
 
11
 
12
  # defining chatbot
13
  chatbot = gr.ChatInterface(echo) #using gradio to quickly build a chatbot UI (w/ convo history & user input)
14
+ # passing fxn into a fxn, passing echo for gradio to call each time the user sends a message
15
+ # Adding parentheses would call the function and pass its return value instead, I didn't include () because I want Gradio to call it later, not right now
16
+
17
  chatbot.launch() #launch chatbot