1inkusFace commited on
Commit
3a30f4d
·
verified ·
1 Parent(s): 4cb7a22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -1,14 +1,16 @@
1
- import subprocess
2
- subprocess.run(['sh', './spaces.sh'])
3
  import spaces
4
 
 
 
 
5
  @spaces.GPU(required=True)
6
  def install_dependencies():
7
  subprocess.run(['sh', './flashattn.sh'])
8
  # Install the UltraHDR library
9
- print("Installing pillow-ultrahdr...")
10
- subprocess.run(['pip', 'install', 'pillow-ultrahdr'])
11
- print("✅ pillow-ultrahdr installed.")
 
12
 
13
  # Install all dependencies
14
  install_dependencies()
 
 
 
1
  import spaces
2
 
3
+ import subprocess
4
+ #subprocess.run(['sh', './spaces.sh'])
5
+
6
  @spaces.GPU(required=True)
7
  def install_dependencies():
8
  subprocess.run(['sh', './flashattn.sh'])
9
  # Install the UltraHDR library
10
+
11
+ print("Installing pillow-ultrahdr...")
12
+ subprocess.run(['pip', 'install', 'pillow-ultrahdr'])
13
+ print("✅ pillow-ultrahdr installed.")
14
 
15
  # Install all dependencies
16
  install_dependencies()