Spaces:
Sleeping
Sleeping
File size: 332 Bytes
ff2f661 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#!/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()
|