Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| # def echo (message, hisotry) | |
| # return (message) | |
| def yesNoRandom(message,history): | |
| repsonse=["yes","no"] | |
| return random.choice(repsonse) | |
| chatbot = gr.ChatInterface(yesNoRandom, type = "messages", title = "Yes or No Bot") | |
| chatbot.launch() |