Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
| 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()
|