raphael-gl HF staff commited on
Commit
bd4377a
1 Parent(s): 9e62897

Make sure diffusers is imported after spaces

Browse files

Reason: NVML must not be initiliazed before loading spaces

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,9 +7,9 @@ import cv2
7
  import random
8
  import numpy as np
9
  from PIL import Image
10
- from diffusers import ControlNetModel, StableDiffusionXLControlNetPipeline
11
 
12
  import spaces
 
13
  import torch
14
  import gradio as gr
15
  from huggingface_hub import hf_hub_download
 
7
  import random
8
  import numpy as np
9
  from PIL import Image
 
10
 
11
  import spaces
12
+ from diffusers import ControlNetModel, StableDiffusionXLControlNetPipeline
13
  import torch
14
  import gradio as gr
15
  from huggingface_hub import hf_hub_download