JackAILab commited on
Commit
526e738
·
verified ·
1 Parent(s): b8a1fe8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -13,6 +13,7 @@ from huggingface_hub import hf_hub_download
13
 
14
  zero = torch.Tensor([0]).cuda()
15
  print(zero.device) # <-- 'cpu' 🤔
 
16
 
17
  # Gets the absolute path of the current script
18
  script_directory = os.path.dirname(os.path.realpath(__file__))
@@ -41,8 +42,6 @@ pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config)
41
  @spaces.GPU
42
  def process(inputImage,prompt,negative_prompt):
43
 
44
- device = zero.device # "cuda"
45
-
46
  # hyper-parameter
47
  select_images = load_image(Image.fromarray(inputImage))
48
  num_steps = 50
 
13
 
14
  zero = torch.Tensor([0]).cuda()
15
  print(zero.device) # <-- 'cpu' 🤔
16
+ device = zero.device # "cuda"
17
 
18
  # Gets the absolute path of the current script
19
  script_directory = os.path.dirname(os.path.realpath(__file__))
 
42
  @spaces.GPU
43
  def process(inputImage,prompt,negative_prompt):
44
 
 
 
45
  # hyper-parameter
46
  select_images = load_image(Image.fromarray(inputImage))
47
  num_steps = 50