svjack commited on
Commit
bef8e28
·
verified ·
1 Parent(s): 7c7f301

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -12,11 +12,19 @@ theme = gr.themes.Base(
12
  font=[gr.themes.GoogleFont('Libre Franklin'), gr.themes.GoogleFont('Public Sans'), 'system-ui', 'sans-serif'],
13
  )
14
 
 
 
15
  pipe = StableDiffusionXLPipeline.from_pretrained(
16
  "stabilityai/stable-diffusion-xl-base-1.0",
17
  custom_pipeline="multimodalart/sdxl_perturbed_attention_guidance",
18
  torch_dtype=torch.float16
19
  )
 
 
 
 
 
 
20
 
21
  device="cuda"
22
  pipe = pipe.to(device)
@@ -69,7 +77,7 @@ with gr.Blocks(css=css, theme=theme) as demo:
69
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
70
  seed = gr.Slider(minimum=1, maximum=9007199254740991, step=1, randomize=True)
71
  lora = gr.Textbox(label="Custom LoRA path", info="Load a custom LoRA from Hugging Face to use PAG with")
72
- gr.Examples(fn=run, examples=[" ", "an insect robot preparing a delicious meal, anime style", "a photo of a group of friends at an amusement park"], inputs=prompt, outputs=[output, seed], cache_examples="lazy")
73
  gr.on(
74
  triggers=[
75
  button.click,
 
12
  font=[gr.themes.GoogleFont('Libre Franklin'), gr.themes.GoogleFont('Public Sans'), 'system-ui', 'sans-serif'],
13
  )
14
 
15
+ #### svjack/GenshinImpact_XL_Base
16
+ '''
17
  pipe = StableDiffusionXLPipeline.from_pretrained(
18
  "stabilityai/stable-diffusion-xl-base-1.0",
19
  custom_pipeline="multimodalart/sdxl_perturbed_attention_guidance",
20
  torch_dtype=torch.float16
21
  )
22
+ '''
23
+ pipe = StableDiffusionXLPipeline.from_pretrained(
24
+ "svjack/GenshinImpact_XL_Base",
25
+ custom_pipeline="multimodalart/sdxl_perturbed_attention_guidance",
26
+ torch_dtype=torch.float16
27
+ )
28
 
29
  device="cuda"
30
  pipe = pipe.to(device)
 
77
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
78
  seed = gr.Slider(minimum=1, maximum=9007199254740991, step=1, randomize=True)
79
  lora = gr.Textbox(label="Custom LoRA path", info="Load a custom LoRA from Hugging Face to use PAG with")
80
+ gr.Examples(fn=run, examples=[" ", "solo,ZHONGLI\(genshin impact\),1boy,portrait,upper_body,highres,", "solo,PAIMON\(genshin impact\),1girl,portrait,highres, bright, shiny, high detail, anime"], inputs=prompt, outputs=[output, seed], cache_examples="lazy")
81
  gr.on(
82
  triggers=[
83
  button.click,