You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gradio.Image.clear event listener does not invoke the callable function. According to the documentation, the listener should be triggered when the user clears the component using the X button for the component, but nothing happens
Have you searched existing issues? 🔎
I have searched and found no existing issues
Reproduction
import gradio as gr
with gr.Blocks() as demo:
with gr.Row():
text = gr.Textbox()
with gr.Row():
input_img = gr.Image(
label="Input",
tool='sketch',
height=600,
width=600,
)
input_img.clear(fn=lambda: gr.Textbox.update(value='Image was cleared'),inputs=None,outputs=text)
demo.launch(height=1024)
Screenshot
No response
Logs
No response
System Info
Gradio version 3.44.1
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered:
Describe the bug
The gradio.Image.clear event listener does not invoke the callable function. According to the documentation, the listener should be triggered when the user clears the component using the X button for the component, but nothing happens
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: