Hannah commited on
Commit
ff2f661
·
1 Parent(s): 8f2b057
Files changed (2) hide show
  1. README.md +1 -0
  2. app.py +13 -0
README.md CHANGED
@@ -5,6 +5,7 @@ colorFrom: gray
5
  colorTo: red
6
  sdk: gradio
7
  sdk_version: 3.38.0
 
8
  app_file: app.py
9
  pinned: false
10
  ---
 
5
  colorTo: red
6
  sdk: gradio
7
  sdk_version: 3.38.0
8
+ python_version: 3.10.11
9
  app_file: app.py
10
  pinned: false
11
  ---
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+
3
+ import pathlib
4
+
5
+ import gradio as gr
6
+
7
+ paths = [path.as_posix() for path in sorted(pathlib.Path('images').glob('*'))]
8
+
9
+ with gr.Blocks() as demo:
10
+ gr.Gallery(value=paths).style(
11
+ height='600px',
12
+ object_fit='scale-down')
13
+ demo.queue().launch()