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

Make sure spaces is imported before torch (#4)

Browse files

- Make sure spaces is imported before torch (ae44ce9b2f7a4961fefd4c949f36c84de4d4654c)


Co-authored-by: raphael g <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,13 +4,13 @@ sys.path.append('./')
4
 
5
  import os
6
  import cv2
7
- import torch
8
  import random
9
  import numpy as np
10
  from PIL import Image
11
  from diffusers import ControlNetModel, StableDiffusionXLControlNetPipeline
12
 
13
  import spaces
 
14
  import gradio as gr
15
  from huggingface_hub import hf_hub_download
16
 
 
4
 
5
  import os
6
  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
16