You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
List of complete filepaths or parent directories that gradio is allowed to serve. Must be absolute paths. Warning: if you provide directories, any files in these directories or their subdirectories are accessible to all users of your app.
However, when I add the absolute path to a parent directory to allowed_paths, my app is still raising gradio.exceptions.InvalidPathError. In particular, I am trying to display a gr.Gallery of images where the images are nested in a subdirectories of my allowed path.
@freddyaboulton in your screencast, the images are in the root of the par dir. In my case, the images are nested under about 10 subdirs below the pardir.
Describe the bug
The documentation for
allowed_paths
states:However, when I add the absolute path to a parent directory to
allowed_paths
, my app is still raisinggradio.exceptions.InvalidPathError
. In particular, I am trying to display agr.Gallery
of images where the images are nested in a subdirectories of my allowed path.Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: