Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ DESCRIPTION = '''
|
|
38 |
<div>
|
39 |
<h1 style="text-align: center;">High Definition Pony Diffusion</h1>
|
40 |
<p>Gradio demo for PonyDiffusion v6 with image gallery, json prompt support, advanced options and more.</p>
|
41 |
-
<p>❤️ Thanks for ✨10k visits!
|
42 |
<p>🔎 For more details about me, take a look at <a href="https://sergidev.me">My website</a>.</p>
|
43 |
<p>🌚 For dark mode compatibility, click <a href="https://sergidev.me/hdiffusion">here</a>.</p>
|
44 |
</div>
|
@@ -257,8 +257,8 @@ def get_random_character():
|
|
257 |
return random.choice(characters)
|
258 |
|
259 |
def add_quality_tags(prompt, negative_prompt):
|
260 |
-
positive_tags = "score_9, score_8_up, score_7_up,
|
261 |
-
negative_tags = "
|
262 |
|
263 |
new_prompt = f"{positive_tags}, {prompt}" if prompt else positive_tags
|
264 |
new_negative_prompt = f"{negative_tags}, {negative_prompt}" if negative_prompt else negative_tags
|
|
|
38 |
<div>
|
39 |
<h1 style="text-align: center;">High Definition Pony Diffusion</h1>
|
40 |
<p>Gradio demo for PonyDiffusion v6 with image gallery, json prompt support, advanced options and more.</p>
|
41 |
+
<p>❤️ Thanks for ✨10k visits! FLUX INTEGRATION COMING SOON!</p>
|
42 |
<p>🔎 For more details about me, take a look at <a href="https://sergidev.me">My website</a>.</p>
|
43 |
<p>🌚 For dark mode compatibility, click <a href="https://sergidev.me/hdiffusion">here</a>.</p>
|
44 |
</div>
|
|
|
257 |
return random.choice(characters)
|
258 |
|
259 |
def add_quality_tags(prompt, negative_prompt):
|
260 |
+
positive_tags = "score_9, score_8_up, score_7_up, score_6_up, dramatic lighting"
|
261 |
+
negative_tags = "worst quality, low quality, text, censored, deformed, bad hand, blurry, (watermark), mutated hands, monochrome"
|
262 |
|
263 |
new_prompt = f"{positive_tags}, {prompt}" if prompt else positive_tags
|
264 |
new_negative_prompt = f"{negative_tags}, {negative_prompt}" if negative_prompt else negative_tags
|