Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random #added here | |
| def respond_yes_no_randomly(message,history): | |
| responses = ["Yes", "No"] #added here | |
| return random.choice(responses) #added here | |
| print ("Hello, world!") | |
| chatbot = gr.ChatInterface(respond_yes_no_randomly, type = "messages", title ="Yes No Bot") #chatbotUI - conversation history and user input | |
| chatbot.launch() | |