How to publish files which are not in gradio's folder
Sometimes we need to publish models or some other files which are not in the path of gradio. How can I do that? From my thought, I think there maybe some ways:Create symbol link in gradio’s folder which point to the real files, then publish these symbol linksCreate anther web service to control those files, and gradio use the http address to publishI don’t know which one is the common solutions, may you help me? Or, if there’s some other solutions for me to learn.Thank you all
2025-01-28T03:21:52Z
I’m not sure whether it’s a local or HF Spaces, but if it’s Spaces, I think the latter is easier. Especially if it’s a download from HF to HF, it’s very fast, and if you use the official HF functions, there’s not much overhead.Gradio is particularly strict about security after version 5, so referencing external paths that are not under the app folder generally takes a lot of effort…huggingface.coHfApi ClientWe’re on a journey to advance and democratize artificial intelligence through open source and open science.