Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,11 +21,11 @@ def respond(message, history):
|
|
| 21 |
def yes_or_no(message, history):
|
| 22 |
return random.choice(['Yes', 'No', 'Maybe', 'Ask Again'])
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
|
| 27 |
print("Hello World!")
|
| 28 |
-
chatbot = gr.ChatInterface(
|
| 29 |
# defining my chatbot so that the user can interact and see their conversation history and send new messages
|
| 30 |
|
| 31 |
chatbot.launch()
|
|
|
|
| 21 |
def yes_or_no(message, history):
|
| 22 |
return random.choice(['Yes', 'No', 'Maybe', 'Ask Again'])
|
| 23 |
|
| 24 |
+
def echo(message, history):
|
| 25 |
+
return message
|
| 26 |
|
| 27 |
print("Hello World!")
|
| 28 |
+
chatbot = gr.ChatInterface(respond, type = "messages")
|
| 29 |
# defining my chatbot so that the user can interact and see their conversation history and send new messages
|
| 30 |
|
| 31 |
chatbot.launch()
|