-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent components from working with non-uploaded files #7465
Conversation
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-builds.s3.amazonaws.com/dda5a7629b1450d6f69cfe8de24b6302d4be3c49/gradio-4.19.1-py3-none-any.whl Install Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@dda5a7629b1450d6f69cfe8de24b6302d4be3c49#subdirectory=client/python" |
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
Maintainers or the PR author can modify the PR title to modify this entry.
|
…gradio-app/gradio into prevent_nonuploaded_file_access
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to modify run_fn_batch
to accept explicit_call (
Line 1532 in cc51d90
def run_fn_batch(self, fn, batch, fn_index, state): |
Line 1615 in cc51d90
self.preprocess_data, fn_index, inputs, state, limiter=self.limiter |
Otherwise looks good to me!
Thanks @aliabid94! This should fix the issue. I would just add a unit test as well, and there's a few nits above. |
This fix looks great. Thank you for the resolution. |
…gradio-app/gradio into prevent_nonuploaded_file_access
No description provided.