Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -158,8 +158,22 @@ footer {
|
|
| 158 |
visibility: hidden
|
| 159 |
}
|
| 160 |
'''
|
| 161 |
-
|
| 162 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
|
| 164 |
with gr.Blocks(css=css) as demo:
|
| 165 |
gr.Markdown(DESCRIPTIONz)
|
|
@@ -275,11 +289,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 275 |
)
|
| 276 |
|
| 277 |
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
|
| 283 |
-
|
| 284 |
if __name__ == "__main__":
|
| 285 |
demo.queue(max_size=30).launch()
|
|
|
|
| 158 |
visibility: hidden
|
| 159 |
}
|
| 160 |
'''
|
| 161 |
+
def load_predefined_images():
|
| 162 |
+
|
| 163 |
+
predefined_images = [
|
| 164 |
+
|
| 165 |
+
"assets/1.png",
|
| 166 |
+
"assets/2.png",
|
| 167 |
+
"assets/3.png",
|
| 168 |
+
"assets/4.png",
|
| 169 |
+
"assets/5.png",
|
| 170 |
+
"assets/6.png",
|
| 171 |
+
"assets/7.png",
|
| 172 |
+
"assets/8.png",
|
| 173 |
+
"assets/9.png",
|
| 174 |
+
|
| 175 |
+
]
|
| 176 |
+
return predefined_images
|
| 177 |
|
| 178 |
with gr.Blocks(css=css) as demo:
|
| 179 |
gr.Markdown(DESCRIPTIONz)
|
|
|
|
| 289 |
)
|
| 290 |
|
| 291 |
|
| 292 |
+
with gr.Column(scale=3):
|
| 293 |
+
gr.Markdown("### Image Gallery")
|
| 294 |
+
predefined_gallery = gr.Gallery(label="Image Gallery", columns=3, show_label=False, value=load_predefined_images())
|
| 295 |
+
|
|
|
|
|
|
|
| 296 |
if __name__ == "__main__":
|
| 297 |
demo.queue(max_size=30).launch()
|