Menyu commited on
Commit
c5c9da6
·
verified ·
1 Parent(s): 7e69a03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -247,7 +247,7 @@ MAX_IMAGE_SIZE = 2048
247
 
248
  if torch.cuda.is_available():
249
  # vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
250
- pipe = StableDiffusionXLPipeline.from_pretrained("John6666/wai-nsfw-illustrious-sdxl-v140-sdxl",torch_dtype=torch.float16)
251
  # pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
252
  pipe.to("cuda")
253
 
@@ -313,7 +313,7 @@ def infer(
313
  "height": height,
314
  "guidance_scale": guidance_scale,
315
  "num_inference_steps": num_inference_steps,
316
- "model": "wai-nsfw-illustrious-sdxl-v140-sdxl",
317
  "use_resolution_binning": use_resolution_binning,
318
  "PreUrl": "https://huggingface.co/spaces/Menyu/wainsfw"
319
  }
@@ -338,7 +338,7 @@ h1{text-align:center}
338
 
339
  with gr.Blocks(css=css) as demo:
340
  gr.Markdown("""# 梦羽的模型生成器
341
- ### 快速生成 Wai nsfw illustrious v140 模型的图片""")
342
  with gr.Group():
343
  with gr.Row():
344
  prompt = gr.Text(
 
247
 
248
  if torch.cuda.is_available():
249
  # vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
250
+ pipe = StableDiffusionXLPipeline.from_pretrained("John6666/wai-nsfw-illustrious-sdxl-v150-sdxl",torch_dtype=torch.float16)
251
  # pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
252
  pipe.to("cuda")
253
 
 
313
  "height": height,
314
  "guidance_scale": guidance_scale,
315
  "num_inference_steps": num_inference_steps,
316
+ "model": "wai-nsfw-illustrious-sdxl-v150-sdxl",
317
  "use_resolution_binning": use_resolution_binning,
318
  "PreUrl": "https://huggingface.co/spaces/Menyu/wainsfw"
319
  }
 
338
 
339
  with gr.Blocks(css=css) as demo:
340
  gr.Markdown("""# 梦羽的模型生成器
341
+ ### 快速生成 Wai nsfw illustrious v150 模型的图片""")
342
  with gr.Group():
343
  with gr.Row():
344
  prompt = gr.Text(