Skip to main content

Improved UI because it includes breaking changes.

Project description

Static Badge

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gradio_improvedfileexplorer-1.0.0.tar.gz (227.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gradio_improvedfileexplorer-1.0.0-py3-none-any.whl (113.3 kB view details)

Uploaded Python 3

File details

Details for the file gradio_improvedfileexplorer-1.0.0.tar.gz.

File metadata

File hashes

Hashes for gradio_improvedfileexplorer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3485cceca19f4104a4ce156564c8058d69d418395fa6eb735be508c732539f36
MD5 c2c0da0eb6b6a4fbcf54d79700e415a3
BLAKE2b-256 70b548abb12bb9dc635c6f7bb65a2069438c068eb3f6485ec51c966323db21af

See more details on using hashes here.

File details

Details for the file gradio_improvedfileexplorer-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gradio_improvedfileexplorer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fac3271b9ae747df65ba827d07a61b4fd2a17398d88178fd7b4f74d95599774b
MD5 d5e08323b1a049adb3651020bb410d64
BLAKE2b-256 00614f3c3bca02f44191f28bbf3bad75d733f97b80efa9a89863367b96745da6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page