Improved UI because it includes breaking changes.
Project description
Improved UI because it includes breaking changes.
Installation
pip install gradio_improvedfileexplorer
Usage
import gradio as gr
from gradio_improvedfileexplorer import ImprovedFileExplorer
import os
with gr.Blocks() as demo:
fe = ImprovedFileExplorer(interactive = True, file_count = "multiple")
fe.change(fn = lambda files: print(files), inputs = fe)
if __name__ == "__main__":
demo.launch()
ImprovedFileExplorer
This component works basically the same as Gradio's original File Explorer, but it has (in my opinion) better UI.
Changes
Select single folders
Up to this date, Gradio has a bug that if you allow users to only select folders (glob = "./**/") and file_count = "single", you can not select anything. Look at this issue.
This problem is solved by changing you select folders. Now the checkbox nect to them select the folder
No recursive selection
When you select folder it no longer selects everything inside nor it opens the file tree. It just selects the folder.
Select all contents of a folder
If you need to select all the contents of a folder, you can open the folder and select "Select all contents" whcih will select or deselect everything inside the folder. *It will not select the folder itself
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gradio_improvedfileexplorer-1.0.0.tar.gz.
File metadata
- Download URL: gradio_improvedfileexplorer-1.0.0.tar.gz
- Upload date:
- Size: 227.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3485cceca19f4104a4ce156564c8058d69d418395fa6eb735be508c732539f36
|
|
| MD5 |
c2c0da0eb6b6a4fbcf54d79700e415a3
|
|
| BLAKE2b-256 |
70b548abb12bb9dc635c6f7bb65a2069438c068eb3f6485ec51c966323db21af
|
File details
Details for the file gradio_improvedfileexplorer-1.0.0-py3-none-any.whl.
File metadata
- Download URL: gradio_improvedfileexplorer-1.0.0-py3-none-any.whl
- Upload date:
- Size: 113.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fac3271b9ae747df65ba827d07a61b4fd2a17398d88178fd7b4f74d95599774b
|
|
| MD5 |
d5e08323b1a049adb3651020bb410d64
|
|
| BLAKE2b-256 |
00614f3c3bca02f44191f28bbf3bad75d733f97b80efa9a89863367b96745da6
|