Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random #this is the library we need | |
| def respond_yes_no_randomly(message, chat_log): | |
| responses = ["yes","no"] | |
| return random.choice(responses) | |
| chatbot = gr.ChatInterface(respond_yes_no_randomly) | |
| chatbot.launch() |