KingNish commited on
Commit
7f79770
1 Parent(s): 9dfd02f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
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 = """![Logo](https://raw.githubusercontent.com/PixArt-alpha/PixArt-sigma-project/master/static/images/logo-sigma.png)
20
- # PixArt-Sigma 1024px
21
- #### [PixArt-Sigma 1024px](https://github.com/PixArt-alpha/PixArt-sigma) is a transformer-based text-to-image diffusion system trained on text embeddings from T5. This demo uses the [PixArt-alpha/PixArt-Sigma-XL-2-1024-MS](https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS) checkpoint.
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"