Spaces:
Runtime error
Runtime error
import gradio as gr | |
def clear_message(): | |
return None | |
def undo_message(): | |
return None | |
def submit_input(): | |
return None | |
with gr.Blocks() as app: | |
with gr.Row(): | |
chat_interface = gr.Chatbox() | |
buttons = [ | |
gr.Button("Clear"), | |
gr.Button("Undo"), | |
gr.Button("Submit") | |
] | |
chat_interface.change(clear_message, inputs=buttons[0], outputs=chat_interface) | |
chat_interface.change(undo_message, inputs=buttons[1], outputs=chat_interface) | |
chat_interface.change(submit_input, inputs=buttons[2], outputs=chat_interface) | |
app.launch() |