Update run.py
Browse files
run.py
CHANGED
@@ -17,7 +17,7 @@ def fake_gan():
|
|
17 |
"https://images.unsplash.com/photo-1601412436009-d964bd02edbc?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=464&q=80",
|
18 |
]
|
19 |
), f"label {i}" if i != 0 else "label" * 50)
|
20 |
-
for i in range(
|
21 |
]
|
22 |
return images
|
23 |
|
@@ -37,9 +37,9 @@ with gr.Blocks() as demo:
|
|
37 |
|
38 |
gallery = gr.Gallery(
|
39 |
label="Generated images", show_label=False, elem_id="gallery"
|
40 |
-
).style(grid=[
|
41 |
|
42 |
-
btn.click(fake_gan, None, gallery,api_name=
|
43 |
|
44 |
if __name__ == "__main__":
|
45 |
-
demo.launch()
|
|
|
17 |
"https://images.unsplash.com/photo-1601412436009-d964bd02edbc?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=464&q=80",
|
18 |
]
|
19 |
), f"label {i}" if i != 0 else "label" * 50)
|
20 |
+
for i in range(3)
|
21 |
]
|
22 |
return images
|
23 |
|
|
|
37 |
|
38 |
gallery = gr.Gallery(
|
39 |
label="Generated images", show_label=False, elem_id="gallery"
|
40 |
+
).style(grid=[2], height="auto")
|
41 |
|
42 |
+
btn.click(fake_gan, None, gallery,api_name='testing')
|
43 |
|
44 |
if __name__ == "__main__":
|
45 |
+
demo.launch()
|