Spaces:
Runtime error
Runtime error
Update app.py
Browse files12345678import gradio as grdef echo(message, history):return messagechatbot = gr.ChatInterface(echo)chatbot.launch()1234567891011import gradio as grdef random_message(message, history):choices = ["yes", "no"]chat_answer = random.choice(choices)return chat_answerprint("Hello, World!")chatbot = gr.ChatInterface(random_message, type = "messages")chatbot.launch()
app.py+7-4