Spaces:
Runtime error
Runtime error
Update app.py
Browse files1 unmodified line234567891011121 unmodified lineimport randomdef random_message(message, history):choices = ["yes", "no"]chat_answer = random.choice(choices)return chat_answerprint("Hello, World!")chatbot = gr.ChatInterface(random_message, type = "messages", theme = "gradio/monochrome")chatbot.launch()1 unmodified line234567891011121 unmodified lineimport randomdef random_message(message, history):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_answerprint("Hello, World!")chatbot = gr.ChatInterface(random_message, type = "messages", theme = "xkcd", editable = True, title = "eightball" )chatbot.launch()
app.py+2-2