Spaces:
Sleeping
Sleeping
import gradio as gr | |
import random | |
def echo(message, history): | |
return(message) | |
def yes_no(message, history): | |
responses = ["Yes", "No"] | |
return random.choice(responses) | |
print("Hello, World!") | |
chatbot = gr.ChatInterface(yes_no, type = "messages", title="My Chatbot", description = "a chatbot that states its opinions.", theme="citrus") | |
chatbot.launch() | |