Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /gradio-app_gradio /demo /uploadbutton_component /run.py
| import gradio as gr | |
| def upload_file(files): | |
| file_paths = [file.name for file in files] | |
| return file_paths | |
| with gr.Blocks() as demo: | |
| file_output = gr.File() | |
| upload_button = gr.UploadButton("Click to Upload an Image or Video File", file_types=["image", "video"], file_count="multiple") | |
| upload_button.upload(upload_file, upload_button, file_output) | |
| demo.launch() | |
Xet Storage Details
- Size:
- 382 Bytes
- Xet hash:
- 7a3c4ae4190fe1f45515f7c99934d1dc3e7a69bae56caead38f20f53c86b1f51
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.