Spaces:
Sleeping
Sleeping
| #!/usr/bin/env python | |
| import pathlib | |
| import gradio as gr | |
| paths = [path.as_posix() for path in sorted(pathlib.Path('images').glob('*'))] | |
| with gr.Blocks() as demo: | |
| gr.Gallery(value=paths).style( | |
| height='600px', | |
| object_fit='scale-down') | |
| demo.queue().launch() | |