Spaces:
Sleeping
Sleeping
Added title, description, and examples
Browse files
app.py
CHANGED
|
@@ -11,5 +11,7 @@ def yes_or_no(message, history):
|
|
| 11 |
print("history:", history)
|
| 12 |
return random.choice(responses)
|
| 13 |
|
| 14 |
-
chatbot = gr.ChatInterface(yes_or_no, type='messages'
|
|
|
|
|
|
|
| 15 |
chatbot.launch()
|
|
|
|
| 11 |
print("history:", history)
|
| 12 |
return random.choice(responses)
|
| 13 |
|
| 14 |
+
chatbot = gr.ChatInterface(yes_or_no, type='messages', title="Yes or No Bot",
|
| 15 |
+
description = "This chatbot only responds with Yes or No",
|
| 16 |
+
examples = ["Is today my lucky day?", "Are you my mother?"])
|
| 17 |
chatbot.launch()
|