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
The gr.fileexplorer() object changes the root parameter when used as a callback function, but it does not actually change the root directory of the component for file searches.
I want to know how to change the root directory of gr.fileexplorer()
Hi @lifeisgoodcdj - the root parameter is deprecated for the FileExplorer. If you use root_dir in both the definition of objFileExplorer and gr.update it should work. If you want to use root, you can return a new instance of gr.FileExplorer in your update function.
Going to close as this seems like a corner case with a deprecated API and fixing would require adding some component specific logic to the app-level postprocessing which would not be ideal for maintainability.
Describe the bug
The gr.fileexplorer() object changes the root parameter when used as a callback function, but it does not actually change the root directory of the component for file searches.
I want to know how to change the root directory of gr.fileexplorer()
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: