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