Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import torch
|
2 |
import types
|
3 |
torch.cuda.get_device_capability = lambda *args, **kwargs: (8, 6)
|
|
|
1 |
+
import subprocess
|
2 |
+
|
3 |
+
# Remove existing submodule
|
4 |
+
subprocess.run(["git", "submodule", "deinit", "-f", "--", "PASD"])
|
5 |
+
subprocess.run(["git", "rm", "-f", "PASD"])
|
6 |
+
subprocess.run(["rm", "-rf", ".git/modules/PASD"])
|
7 |
+
|
8 |
+
# Add submodule
|
9 |
+
subprocess.run(["git", "submodule", "add", "https://github.com/fffiloni/PASD.git", "PASD"])
|
10 |
+
subprocess.run(["git", "submodule", "update", "--init", "--recursive"])
|
11 |
+
|
12 |
+
# Ensure submodule is up-to-date
|
13 |
+
subprocess.run(["git", "submodule", "update", "--recursive", "--remote"])
|
14 |
+
|
15 |
import torch
|
16 |
import types
|
17 |
torch.cuda.get_device_capability = lambda *args, **kwargs: (8, 6)
|