Spaces:
Sleeping
Sleeping
fixed error
Browse files
app.py
CHANGED
|
@@ -3,13 +3,13 @@ import random
|
|
| 3 |
# import lines go at the top! Any libraries I need to import go up here^^
|
| 4 |
|
| 5 |
|
| 6 |
-
def
|
| 7 |
return random.choice(['Yes', 'No', 'Of course', 'Try again', 'No, better luck next time!', "I think not", "Absolutely, yes!", ])
|
| 8 |
# def echo(message, history):
|
| 9 |
# return message
|
| 10 |
|
| 11 |
print("Hello World")
|
| 12 |
-
chatbot = gr.ChatInterface(
|
| 13 |
# defining my chatbot so that the user can interact and see their conversation history and send new messages
|
| 14 |
|
| 15 |
|
|
|
|
| 3 |
# import lines go at the top! Any libraries I need to import go up here^^
|
| 4 |
|
| 5 |
|
| 6 |
+
def magic_ball(message, history):
|
| 7 |
return random.choice(['Yes', 'No', 'Of course', 'Try again', 'No, better luck next time!', "I think not", "Absolutely, yes!", ])
|
| 8 |
# def echo(message, history):
|
| 9 |
# return message
|
| 10 |
|
| 11 |
print("Hello World")
|
| 12 |
+
chatbot = gr.ChatInterface(magic_ball, title="Your Bestie!", type="I will serve you!")
|
| 13 |
# defining my chatbot so that the user can interact and see their conversation history and send new messages
|
| 14 |
|
| 15 |
|