radames commited on
Commit
425b8b6
1 Parent(s): 98c3b25

interactive

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,6 +17,7 @@ import cv2
17
  import numpy as np
18
 
19
  IS_SPACES_ZERO = os.environ.get("SPACES_ZERO_GPU", "0") == "1"
 
20
 
21
  device = "cuda" if torch.cuda.is_available() else "cpu"
22
  dtype = torch.float16
@@ -183,7 +184,7 @@ You can upload an initial image and prompt to generate an enhanced version.
183
  value=2,
184
  step=1,
185
  label="Magnification Scale",
186
- interactive=False,
187
  )
188
  controlnet_conditioning_scale = gr.Slider(
189
  minimum=0,
 
17
  import numpy as np
18
 
19
  IS_SPACES_ZERO = os.environ.get("SPACES_ZERO_GPU", "0") == "1"
20
+ IS_SPACE = os.environ.get("SPACE_ID", None) is not None
21
 
22
  device = "cuda" if torch.cuda.is_available() else "cpu"
23
  dtype = torch.float16
 
184
  value=2,
185
  step=1,
186
  label="Magnification Scale",
187
+ interactive=not IS_SPACE,
188
  )
189
  controlnet_conditioning_scale = gr.Slider(
190
  minimum=0,