Commit
·
e7b7ed7
1
Parent(s):
e1fdf6f
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,6 +93,7 @@ def assembleHTML(model):
|
|
| 93 |
html_gallery = html_gallery+'''
|
| 94 |
<div class="flex gr-gap gr-form-gap row gap-4 w-full flex-wrap" id="main_row">
|
| 95 |
'''
|
|
|
|
| 96 |
for model in models:
|
| 97 |
html_gallery = html_gallery+f'''
|
| 98 |
<div class="gr-block gr-box relative w-full overflow-hidden border-solid border border-gray-200 gr-panel">
|
|
@@ -130,6 +131,9 @@ def assembleHTML(model):
|
|
| 130 |
</div>
|
| 131 |
</div>
|
| 132 |
'''
|
|
|
|
|
|
|
|
|
|
| 133 |
html_gallery = html_gallery+'''
|
| 134 |
</div>
|
| 135 |
'''
|
|
@@ -290,7 +294,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 290 |
''')
|
| 291 |
with gr.Row():
|
| 292 |
with gr.Column():
|
| 293 |
-
gr.Markdown(f"### Navigate
|
| 294 |
with gr.Row():
|
| 295 |
image_blocks = []
|
| 296 |
#for i, model in enumerate(models):
|
|
|
|
| 93 |
html_gallery = html_gallery+'''
|
| 94 |
<div class="flex gr-gap gr-form-gap row gap-4 w-full flex-wrap" id="main_row">
|
| 95 |
'''
|
| 96 |
+
cap = 0
|
| 97 |
for model in models:
|
| 98 |
html_gallery = html_gallery+f'''
|
| 99 |
<div class="gr-block gr-box relative w-full overflow-hidden border-solid border border-gray-200 gr-panel">
|
|
|
|
| 131 |
</div>
|
| 132 |
</div>
|
| 133 |
'''
|
| 134 |
+
cap += 1
|
| 135 |
+
if(cap == 99):
|
| 136 |
+
break
|
| 137 |
html_gallery = html_gallery+'''
|
| 138 |
</div>
|
| 139 |
'''
|
|
|
|
| 294 |
''')
|
| 295 |
with gr.Row():
|
| 296 |
with gr.Column():
|
| 297 |
+
gr.Markdown(f"### Navigate the top 100 Textual-Inversion community trained concepts. Use 600+ from [The Library](https://huggingface.co/sd-concepts-library)")
|
| 298 |
with gr.Row():
|
| 299 |
image_blocks = []
|
| 300 |
#for i, model in enumerate(models):
|