Spaces:
Running
Running
Commit
·
29b0148
1
Parent(s):
023631a
Minor
Browse files
app.py
CHANGED
@@ -114,6 +114,9 @@ CSS = """
|
|
114 |
DEFAULT_TEXT = "A person is "
|
115 |
|
116 |
|
|
|
|
|
|
|
117 |
##########################
|
118 |
######Preparing demo######
|
119 |
##########################
|
@@ -260,12 +263,6 @@ def generate_component(generate_function, text, motion_len='0', postprocess='IK'
|
|
260 |
return htmls
|
261 |
|
262 |
|
263 |
-
if not os.path.exists("checkpoints/t2m"):
|
264 |
-
os.system("bash prepare/download_models_demo.sh")
|
265 |
-
|
266 |
-
|
267 |
-
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
268 |
-
|
269 |
# LOADING
|
270 |
|
271 |
# DEMO
|
|
|
114 |
DEFAULT_TEXT = "A person is "
|
115 |
|
116 |
|
117 |
+
if not os.path.exists("checkpoints/t2m"):
|
118 |
+
os.system("bash prepare/download_models_demo.sh")
|
119 |
+
|
120 |
##########################
|
121 |
######Preparing demo######
|
122 |
##########################
|
|
|
263 |
return htmls
|
264 |
|
265 |
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
# LOADING
|
267 |
|
268 |
# DEMO
|