Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| # import lines go at the top! Any libraries I need to import go up here^^ | |
| def magic_8_ball(message, history): | |
| return random.choice(['Yes', 'No', 'Of course', 'Try again', 'No, better luck next time!', "I think not", "Absolutely, yes!", ]) | |
| # def echo(message, history): | |
| # return message | |
| print("Hello World") | |
| chatbot = gr.ChatInterface( | |
| magic_8_ball, | |
| title="Your Bestie!", | |
| type="messages" | |
| ) | |
| # defining my chatbot so that the user can interact and see their conversation history and send new messages | |
| chatbot.launch() | |