Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Javier Tirado-Garín
javrtg
Follow
AI & ML interests
None yet
Recent Activity
updated
a Space
29 days ago
javrtg/AnyCalib
reacted
to
freddyaboulton
's
post
with ❤️
about 1 month ago
Tips for saving disk space with Gradio 💾 Try these out with gradio 4.22.0 ! Code snippet attached. 1. Set delete_cache. The delete_cache parameter will periodically delete files from gradio's cache that are older than a given age. Setting it will also delete all files created by that app when the app shuts down. It is a tuple of two ints, (frequency, age) expressed in seconds. So delete_cache=(3600, 3600), will delete files older than an hour every hour. 2. Use static files. Static files are not copied to the cache and are instead served directly to users of your app. This is useful for components displaying a lot of content that won't change, like a gallery with hundreds of images. 3. Set format="jpeg" for images and galleries. JPEGs take up less disk space than PNGs. This can also speed up the speed of your prediction function as they will be written to the cache faster.
published
a Space
about 1 month ago
javrtg/AnyCalib
View all activity
Organizations
None yet
javrtg
's Spaces
1
Sort: Recently updated
Running
Agents
AnyCalib
🌖
AnyCalib demo