multimodalart HF staff commited on
Commit
c53db80
1 Parent(s): 72572e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -129,19 +129,19 @@ with gr.Blocks(css=css, theme=theme) as demo:
129
  ```py
130
  from diffusers import AutoPipelineForText2Image
131
  pipe = AutoPipelineForText2Image.from_pretrained(
132
- "temp-org-cc/CommonCanvas-XLC", #here you can pick between
133
  custom_pipeline="multimodalart/sdxl_perturbed_attention_guidance",
134
  torch_dtype=torch.float16
135
  ).to(device)
136
 
137
  prompt = "a cat"
138
- image = pipe_xlc(prompt, num_inference_steps=25).images[0]
139
  ```
140
  ## Using it ComfyUI/Automatic1111
141
- - [CommonCanvasSC.safetensors](#) (SD2 drop-in, commercial)
142
- - [CommonCanvasSNC.safetensors](#) (SD2 drop-in, non-commercial - trained on more data)
143
- - [CommonCanvasXLC.safetensors](#) (SDXL drop-in, commercial)
144
- - [CommonCanvasXLNC.safetensors](#) (SDXL drop-in, non-commercial - trained on more data)
145
  ''')
146
  #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=True)
147
  gr.on(
 
129
  ```py
130
  from diffusers import AutoPipelineForText2Image
131
  pipe = AutoPipelineForText2Image.from_pretrained(
132
+ "common-canvas/CommonCanvasXL-C", #here you can pick between all models
133
  custom_pipeline="multimodalart/sdxl_perturbed_attention_guidance",
134
  torch_dtype=torch.float16
135
  ).to(device)
136
 
137
  prompt = "a cat"
138
+ image = pipe(prompt, num_inference_steps=25).images[0]
139
  ```
140
  ## Using it ComfyUI/Automatic1111
141
+ - [CommonCanvasS-C.safetensors](https://huggingface.co/common-canvas/CommonCanvas-S-C/resolve/main/commoncanvas_s_c.safetensors?download=true) (SD2 drop-in, commercial)
142
+ - [CommonCanvasS-NC.safetensors](https://huggingface.co/common-canvas/CommonCanvas-S-NC/resolve/main/commoncanvas_s_nc.safetensors?download=true) (SD2 drop-in, non-commercial - trained on more data)
143
+ - [CommonCanvasXL-C.safetensors](https://huggingface.co/common-canvas/CommonCanvas-XL-NC/blob/main/commoncanvas_xl_nc.safetensors) (SDXL drop-in, commercial)
144
+ - [CommonCanvasXL-NC.safetensors](https://huggingface.co/common-canvas/CommonCanvas-XL-NC/resolve/main/commoncanvas_xl_nc.safetensors?download=true) (SDXL drop-in, non-commercial - trained on more data)
145
  ''')
146
  #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=True)
147
  gr.on(