Skip to content
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

Add option to upload files to GradioUI #138

Merged
merged 4 commits into from
Jan 13, 2025

Conversation

stackviolator
Copy link
Contributor

Added the option to upload files to the GradioUI by passing in the UPLOAD_FOLDER parameter. Also added some checks for path traversal or arbitrary file uploads and a quick example showing the upload button exists. Up to the user to implement a tool to search through the files :).

@aymeric-roucher
Copy link
Collaborator

@stackviolator seems like a great idea! Could we rename the UPLOAD_FOLDER to something in lowercase, and maybe make it file_upload_folder to make it clearer?

@stackviolator
Copy link
Contributor Author

Sure! Just changed the param

@aymeric-roucher aymeric-roucher merged commit 2a51efe into huggingface:main Jan 13, 2025
@aymeric-roucher
Copy link
Collaborator

Thank you @stackviolator , great addition! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants