Spaces:
Runtime error
Runtime error
yes or no function
Browse files123456789101112import gradio as gr#import lines go at the top!def echo(message, history):#always need two inputsreturn messageprint("Hello, World")chatbot = gr.ChatInterface(echo, type='messages')#defining my chatbot so user can interact, see their conversation and send new messageschatbot.launch()1234567891011121314151617import gradio as grimport random#import lines go at the top!def yes_or_no(message,history):return random.choice(['Yes','No'])#def echo(message, history):#always need two inputs#return messageprint("Hello, World")chatbot = gr.ChatInterface(yes_or_no, type='messages')#defining my chatbot so user can interact, see their conversation and send new messageschatbot.launch()
app.py+8-3