Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,12 +16,9 @@ from peft import PeftModel
|
|
16 |
from diffusers_patches import pixart_sigma_init_patched_inputs, PixArtSigmaPipeline
|
17 |
|
18 |
|
19 |
-
DESCRIPTION = """
|
20 |
-
|
21 |
-
|
22 |
-
#### English prompts ONLY; 提示词仅限英文
|
23 |
-
#### Welcome to Star🌟 our [GitHub](https://github.com/PixArt-alpha/PixArt-sigma)
|
24 |
-
### <span style='color: red;'>You may change the DPM-Solver inference steps from 14 to 20, or DPM-Solver Guidance scale from 4.5 to 3.5 if you didn't get satisfied results.
|
25 |
"""
|
26 |
if not torch.cuda.is_available():
|
27 |
DESCRIPTION += "\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>"
|
@@ -92,7 +89,7 @@ style_list = [
|
|
92 |
|
93 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
94 |
STYLE_NAMES = list(styles.keys())
|
95 |
-
DEFAULT_STYLE_NAME = "(No style)
|
96 |
"
|
97 |
SCHEDULE_NAME = ["DPM-Solver"]
|
98 |
DEFAULT_SCHEDULE_NAME = "DPM-Solver"
|
|
|
16 |
from diffusers_patches import pixart_sigma_init_patched_inputs, PixArtSigmaPipeline
|
17 |
|
18 |
|
19 |
+
DESCRIPTION = """ # Instant Image
|
20 |
+
### Super fast text to Image Generator.
|
21 |
+
### <span style='color: red;'>You may change the steps from 9 to 15, if you didn't get satisfied results.
|
|
|
|
|
|
|
22 |
"""
|
23 |
if not torch.cuda.is_available():
|
24 |
DESCRIPTION += "\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>"
|
|
|
89 |
|
90 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
91 |
STYLE_NAMES = list(styles.keys())
|
92 |
+
DEFAULT_STYLE_NAME = "(No style)"
|
93 |
"
|
94 |
SCHEDULE_NAME = ["DPM-Solver"]
|
95 |
DEFAULT_SCHEDULE_NAME = "DPM-Solver"
|