ChatbotLab / app.py
limeiz's picture
Update app.py
4f86ed8 verified
raw
history blame
268 Bytes
import gradio as gr
import random
def random_message(message, history):
choices = ["yes", "no"]
chat_answer = random.choice(choices)
return chat_answer
print("Hello, World!")
chatbot = gr.ChatInterface(random_message, type = "messages")
chatbot.launch()