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
Traceback (most recent call last):
File "/tmp/app.py", line 5, in <module>
image.input(fn=lambda: print("foo"))
AttributeError: 'Image' object has no attribute 'input'
System Info
gradio==4.38.1
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered:
Hi gradio Team :)
what would be the difference between gr.Image.upload() dans gr.Image.input()?
I’ve seen you fixed the issue but not sure to understand what would the .input event add compared to an upload event ? the event documentation is not very clear to me, and I can’t read your internal slack where you seem to describe the issue .
thanks !
Hi @ngaudemet! The .input() event is fired whenever the user changes the value of the Image component through the UI. This would mean, for example, if the user clears the image. However, .upload() is only fired when a new image is actually uploaded.
thanks @abidlabs! It's clearer for me now. Concerning events, the gr.File.select() still doesn't work anymore, though it is very useful when you want to know in the back end that a user selected a file in the front end :) cf issue #8772
Describe the bug
internal Slack
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: