Spaces:
Runtime error
Runtime error
Add more example images
Browse files- .gitignore +1 -0
- app.py +5 -1
- examples/tt0109830-forrest-gump.jpg +0 -0
- examples/tt0434409-v-for-vendetta.jpg +0 -0
- examples/tt3521164-moana.jpg +0 -0
.gitignore
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
.vscode
|
2 |
.ipynb_checkpoints
|
|
|
|
1 |
.vscode
|
2 |
.ipynb_checkpoints
|
3 |
+
.idea
|
app.py
CHANGED
@@ -60,7 +60,9 @@ description = ""
|
|
60 |
|
61 |
input = gr.inputs.Image(type="pil")
|
62 |
|
63 |
-
example_images = sorted(
|
|
|
|
|
64 |
print(f"Loaded {len(example_images)} example images")
|
65 |
|
66 |
interface = gr.Interface(
|
@@ -70,7 +72,9 @@ interface = gr.Interface(
|
|
70 |
title=title,
|
71 |
description=description,
|
72 |
examples=example_images,
|
|
|
73 |
live=True,
|
|
|
74 |
)
|
75 |
|
76 |
interface.launch()
|
|
|
60 |
|
61 |
input = gr.inputs.Image(type="pil")
|
62 |
|
63 |
+
example_images = sorted(
|
64 |
+
[f.as_posix() for f in Path("examples").glob("*.jpg")]
|
65 |
+
)
|
66 |
print(f"Loaded {len(example_images)} example images")
|
67 |
|
68 |
interface = gr.Interface(
|
|
|
72 |
title=title,
|
73 |
description=description,
|
74 |
examples=example_images,
|
75 |
+
examples_per_page=20,
|
76 |
live=True,
|
77 |
+
article='<p>Made by: <a href="https://twitter.com/kartik_godawat" target="_blank" rel="noopener noreferrer">dk-crazydiv</a> and <a href="https://twitter.com/dsr_ai" target="_blank" rel="noopener noreferrer">dsr</a></p>'
|
78 |
)
|
79 |
|
80 |
interface.launch()
|
examples/tt0109830-forrest-gump.jpg
ADDED
examples/tt0434409-v-for-vendetta.jpg
ADDED
examples/tt3521164-moana.jpg
ADDED