cocktailpeanut
commited on
Commit
•
1837f83
1
Parent(s):
57c8b05
update
Browse files
app.py
CHANGED
@@ -29,6 +29,10 @@ if torch.cuda.is_available():
|
|
29 |
else:
|
30 |
device = "cpu"
|
31 |
|
|
|
|
|
|
|
|
|
32 |
model = TSR.from_pretrained(
|
33 |
"stabilityai/TripoSR",
|
34 |
config_name="config.yaml",
|
|
|
29 |
else:
|
30 |
device = "cpu"
|
31 |
|
32 |
+
d = os.environ.get("DEVICE", None)
|
33 |
+
if d != None:
|
34 |
+
device = d
|
35 |
+
|
36 |
model = TSR.from_pretrained(
|
37 |
"stabilityai/TripoSR",
|
38 |
config_name="config.yaml",
|