Spaces:
Sleeping
Sleeping
Update app.py
Browse files1234567import gradio as grdef echo(message, history):# why history as a parameterreturn messageprint("Hello, World!")chatbot = gr.ChatInterface(echo, type="messages")chatbot.launch()12345678910import gradio as grimport randomdef yes_or_no(message, history):return random.uniform(yes, no)# def echo(message, history):# return messageprint("Hello, World!")print(history)chatbot = gr.ChatInterface(yes_or_no, type="messages")chatbot.launch()
app.py+7-4