ford442 commited on
Commit
338bb9f
·
verified ·
1 Parent(s): 12737fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -6,6 +6,12 @@
6
  # copies of the Software, and to permit persons to whom the Software is
7
  import spaces
8
 
 
 
 
 
 
 
9
  import os
10
 
11
  os.environ['PYTORCH_NVML_BASED_CUDA_CHECK'] = '1'
@@ -107,11 +113,6 @@ ip_ckpt = os.path.join(local_folder2, "ip-adapter_sdxl_vit-h.bin") # Correct pat
107
 
108
  upscaler = UpscaleWithModel.from_pretrained("Kim2091/ClearRealityV1").to(torch.device("cuda:0"))
109
 
110
- @spaces.GPU(required=True)
111
- def install_flashattn():
112
- subprocess.run(['sh', './flashattn.sh'])
113
-
114
- #install_flashattn()
115
 
116
  def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str, str]:
117
  if style_name in styles:
 
6
  # copies of the Software, and to permit persons to whom the Software is
7
  import spaces
8
 
9
+ @spaces.GPU(required=True)
10
+ def install_flashattn():
11
+ subprocess.run(['sh', './flashattn.sh'])
12
+
13
+ install_flashattn()
14
+
15
  import os
16
 
17
  os.environ['PYTORCH_NVML_BASED_CUDA_CHECK'] = '1'
 
113
 
114
  upscaler = UpscaleWithModel.from_pretrained("Kim2091/ClearRealityV1").to(torch.device("cuda:0"))
115
 
 
 
 
 
 
116
 
117
  def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str, str]:
118
  if style_name in styles: