Spaces:
Sleeping
Sleeping
Update app.py
Browse files12345674589101112913141516import gradio as grimport random# first, add your import lines
def yes_or_no(message, history): responses = ["Yes", "No"] return responses.choice(responses)def echo(message, history): return message# def echo(message, history): # return message# Code the function that your chatbot will run!
print("Hello world")chatbot = gr.ChatInterface(echo, type="messages")chatbot = gr.ChatInterface(yes_or_no, type="messages")# Use gradio to create an interface where your user can use ChatInterface --> needs a function as a parameter to run
chatbot.launch()app.py+7-3