gradio icon indicating copy to clipboard operation
gradio copied to clipboard

📂 File Browser component

Open camenduru opened this issue 3 years ago • 7 comments

Is your feature request related to a problem? Please describe.
🤗 has no file browser when we use gradio in 🤗 we don't have native gradio file browser like gallery

Describe the solution you'd like
simple file browser upload download maybe search features

Additional context
Colab Screenshot 2022-12-05 212855f

Kaggle Screenshot 2022-12-05 213111

camenduru avatar Dec 07 '22 18:12 camenduru

Interesting, can you elaborate a little more on the use case here? I assume that this would allow you to preview files that are uploaded on the Space itself. What kind of files do you want to upload/download from Spaces as opposed to from the user's computer?

abidlabs avatar Dec 08 '22 21:12 abidlabs

Hi @abidlabs 👋 I am working on this https://huggingface.co/spaces/camenduru/webui I will use 📁 File Browser component for Textual Inversion and Dreambooth Training, user will upload images .jpg or .png from user's computer in to a folder after training done user will download .ckpt and .pt files from folder to user's computer.

camenduru avatar Dec 08 '22 21:12 camenduru

Why is the existing gr.File() not sufficient here? you can set gr.File(file_count="multiple") to allow the user to upload multiple files

aliabid94 avatar Dec 09 '22 02:12 aliabid94

@aliabid94 how user browse and download files when training done? Please build a simple 📁 File Browser component 🤗 needs a simple input output gradio can give 🤗 this fundamental need also you can combine 📁 File Browser with simple text editor 🎉

camenduru avatar Dec 09 '22 04:12 camenduru

@aliabid94 after your question, it looks like this feature request will stay here untouched for months 😋 if you don't want to build please tell me I will close the issue and I will find an other solution

camenduru avatar Dec 09 '22 04:12 camenduru

@aliabid94 thank you for the super cool 📁 File Browser ❤

camenduru avatar Dec 10 '22 05:12 camenduru

Let's keep this open until the FileBrowser is released :)

abidlabs avatar Dec 10 '22 05:12 abidlabs