asffhgjasdasfdsa commited on
Commit
0a950f8
·
verified ·
1 Parent(s): 91b285c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -246,8 +246,8 @@ MAX_SEED = np.iinfo(np.int32).max
246
  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-v150-sdxl",torch_dtype=torch.float16)
251
  # pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
252
  pipe.to("cuda")
253
 
@@ -313,9 +313,9 @@ def infer(
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
  }
320
  # Add metadata to the image
321
  image_with_metadata = add_metadata_to_image(image, metadata)
@@ -336,9 +336,7 @@ css = '''
336
  h1{text-align:center}
337
  '''
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(
 
246
  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/rrod-ikea-rrod-ikea-v5-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": "rrod-ikea-rrod-ikea-v5-sdxl",
317
  "use_resolution_binning": use_resolution_binning,
318
+ "PreUrl": "https://huggingface.co/spaces/asffhgjasdasfdsa/spaceTest"
319
  }
320
  # Add metadata to the image
321
  image_with_metadata = add_metadata_to_image(image, metadata)
 
336
  h1{text-align:center}
337
  '''
338
 
339
+ with gr.Blocks(css=css) as demo:
 
 
340
  with gr.Group():
341
  with gr.Row():
342
  prompt = gr.Text(