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

Specify Example Caching Directory #5781

Closed
1 task done
freddyaboulton opened this issue Oct 3, 2023 · 4 comments · Fixed by #6803
Closed
1 task done

Specify Example Caching Directory #5781

freddyaboulton opened this issue Oct 3, 2023 · 4 comments · Fixed by #6803
Labels
good first issue Good for newcomers python Backend-related issue (Python)

Comments

@freddyaboulton
Copy link
Collaborator

freddyaboulton commented Oct 3, 2023

  • I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.
Would be great to specify the directory gradio uses to cache examples. This would allow developers to save the cache to persistent storage on HF Spaces.

Describe the solution you'd like
Support specifying the cached directory via environment variable and a parameter in the examples class.

Additional context
Add any other context or screenshots about the feature request here.

@freddyaboulton freddyaboulton added good first issue Good for newcomers python Backend-related issue (Python) hacktoberfest labels Oct 3, 2023
@SrijanSahaySrivastava
Copy link
Contributor

Heya, could you please elaborate your request. I'm interested on working on this but need some guidance. thank you <3

@henryruhs

This comment was marked as abuse.

@freddyaboulton
Copy link
Collaborator Author

For files created during the application's lifetime, users can determine the directory where those files are created via GRADIO_TEMP_DIR variable. That can't be done for examples. They always get cached to gradio_cached_examples in the directory where the python launch command was called from.

@Ashhar-24
Copy link

Hello @freddyaboulton, I would love to work on this issue actively, but I am not able to understand what is required to be done.
And like from which folder am I supposed to work on, I'm not able to understand.
Kindly guide me through.
Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers python Backend-related issue (Python)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants