Spaces:
Runtime error
Runtime error
Commit
•
f805a73
1
Parent(s):
4101c6b
Load images when page loads (#2)
Browse files- Load images when page loads (cfdebc6209929ebaafdcba6986e23495bd1601ca)
Co-authored-by: Abubakar Abid <abidlabs@users.noreply.huggingface.co>
app.py
CHANGED
@@ -16,11 +16,7 @@ with block:
|
|
16 |
with gr.Group():
|
17 |
with gr.Box():
|
18 |
gallery=gr.Gallery(label="Hug Gallery")
|
19 |
-
|
20 |
-
margin=False,
|
21 |
-
rounded=(False, True, True, False),
|
22 |
-
)
|
23 |
-
btn.click(infer, inputs=None, outputs=gallery)
|
24 |
|
25 |
block.launch()
|
26 |
|
|
|
16 |
with gr.Group():
|
17 |
with gr.Box():
|
18 |
gallery=gr.Gallery(label="Hug Gallery")
|
19 |
+
block.load(infer, inputs=None, outputs=gallery)
|
|
|
|
|
|
|
|
|
20 |
|
21 |
block.launch()
|
22 |
|