Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| def magic_8_ball(message, history): | |
| return random.choice(['yes', 'no']) | |
| #def yes_or_no(message, history): | |
| # return random.choice(['Yes', 'No']) | |
| #def echo(message, history): | |
| # return message | |
| print("Hello World!") | |
| chatbot = gr.ChatInterface(magic_8_ball, type = "messages") | |
| #defining my chatbot so users can interact and see their conversation history and send new messages! | |
| chatbot.launch() | |