Spaces:
Runtime error
Runtime error
Update app.py
Browse files1 unmodified line234556789101011121 unmodified lineimport random
def random_message(message, history): choices = ["yes", "no"] choices = ["yes.", "no.", "it is certain","without a doubt","outlook good","ask again later", "better not tell you now","very doubtful","don't count on it","my sources say no","outlook not so good","very doubtful,"reply hazing, try again", "cannot predict now"] chat_answer = random.choice(choices) return chat_answer
print("Hello, World!")chatbot = gr.ChatInterface(random_message, type = "messages", theme = "gradio/monochrome")chatbot = gr.ChatInterface(random_message, type = "messages", theme = "xkcd", editable = True, title = "eightball" )
chatbot.launch()app.py+2-2