Spaces:
Running
on
Zero
Running
on
Zero
QOL app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ DESCRIPTION = '''
|
|
37 |
<div>
|
38 |
<h1 style="text-align: center;">High Definition Pony Diffusion</h1>
|
39 |
<p>Gradio demo for PonyDiffusion v6 with image gallery, json prompt support, advanced options and more.</p>
|
40 |
-
<p>❤️ Thanks for
|
41 |
<p>🔎 For more details about me, take a look at <a href="https://sergidev.me">My website</a>.</p>
|
42 |
<p>🌚 For dark mode compatibility, click <a href="https://sergidev.me/hdiffusion">here</a>.</p>
|
43 |
</div>
|
@@ -237,7 +237,7 @@ def generate_and_update_history(*args, **kwargs):
|
|
237 |
"image": images[0],
|
238 |
"metadata": metadata
|
239 |
})
|
240 |
-
if len(generation_history) >
|
241 |
generation_history.pop()
|
242 |
return images[0], json.dumps(metadata, indent=2), update_history_list()
|
243 |
|
|
|
37 |
<div>
|
38 |
<h1 style="text-align: center;">High Definition Pony Diffusion</h1>
|
39 |
<p>Gradio demo for PonyDiffusion v6 with image gallery, json prompt support, advanced options and more.</p>
|
40 |
+
<p>❤️ Thanks for ✨2000 visits! Heart this space if you like it!</p>
|
41 |
<p>🔎 For more details about me, take a look at <a href="https://sergidev.me">My website</a>.</p>
|
42 |
<p>🌚 For dark mode compatibility, click <a href="https://sergidev.me/hdiffusion">here</a>.</p>
|
43 |
</div>
|
|
|
237 |
"image": images[0],
|
238 |
"metadata": metadata
|
239 |
})
|
240 |
+
if len(generation_history) > 20:
|
241 |
generation_history.pop()
|
242 |
return images[0], json.dumps(metadata, indent=2), update_history_list()
|
243 |
|