Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| # Chat function: Respond with what we said | |
| def echo(message, history): | |
| return message | |
| def yes_no(message, history): | |
| responses = ['Yes', 'No', 'Oh I dont think so', 'Affirmative', 'All signs point to yes', 'Maybe', 'Negative'] | |
| return random.choice(responses) | |
| # print('Hello World') | |
| chatbot = gr.ChatInterface(yes_no, type='messages', title= "Totoro's ChatBot", description= "This is Totoro approved >.<", theme= 'Taithrah/Minimal') | |
| chatbot.launch() | |