Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -4,12 +4,13 @@ from PIL import Image
4
  import numpy as np
5
  import cv2
6
  from diffusers import StableDiffusionPipeline
 
7
 
8
 
9
 
10
  # Setup the model
11
  device = "cuda" if torch.cuda.is_available() else "cpu"
12
- model_id = "stabilityai/stable-diffusion-2-1"
13
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16 if device == "cuda" else torch.float32, use_auth_token=True)
14
  pipe = pipe.to(device)
15
 
@@ -106,4 +107,4 @@ with gr.Blocks(css=css) as demo:
106
  outputs=[result]
107
  )
108
 
109
- demo.queue().launch()
 
4
  import numpy as np
5
  import cv2
6
  from diffusers import StableDiffusionPipeline
7
+ from huggingface_hub import login
8
 
9
 
10
 
11
  # Setup the model
12
  device = "cuda" if torch.cuda.is_available() else "cpu"
13
+ model_id = "s3nh/artwork-arcane-stable-diffusion"
14
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16 if device == "cuda" else torch.float32, use_auth_token=True)
15
  pipe = pipe.to(device)
16
 
 
107
  outputs=[result]
108
  )
109
 
110
+ demo.queue().launch()