Spaces:
Sleeping
Sleeping
v1
Browse files
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
|
|
|
|
|
|
|
| 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
|