svjack commited on
Commit
6e25338
·
verified ·
1 Parent(s): 4b72397

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import os
4
  # uncomment the next line to use huggingface model in China
5
  # os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'
6
 
7
- import spaces
8
  import cv2
9
  import io
10
  import gc
@@ -241,7 +241,7 @@ class GlobalState:
241
 
242
 
243
  @torch.no_grad()
244
- @spaces.GPU(duration=180) # @spaces.GPU(duration=200)
245
  def process1(input_path, prompt, sd_model, seed, image_resolution, control_strength,
246
  x0_strength, control_type, low_threshold, high_threshold,
247
  ddpm_steps, scale, a_prompt, n_prompt,
 
4
  # uncomment the next line to use huggingface model in China
5
  # os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'
6
 
7
+ #import spaces
8
  import cv2
9
  import io
10
  import gc
 
241
 
242
 
243
  @torch.no_grad()
244
+ #@spaces.GPU(duration=180) # @spaces.GPU(duration=200)
245
  def process1(input_path, prompt, sd_model, seed, image_resolution, control_strength,
246
  x0_strength, control_type, low_threshold, high_threshold,
247
  ddpm_steps, scale, a_prompt, n_prompt,