Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /gradio-app_gradio /demo /upload_button /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 a File", file_types=["image", "video"], file_count="multiple") | |
| upload_button.upload(upload_file, upload_button, file_output) | |
| demo.launch() | |
Xet Storage Details
- Size:
- 366 Bytes
- Xet hash:
- 08165fdc2f741121f8fe87b4c0202ae193523a31e6629a09ace24e22e45fe077
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.