Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -173,12 +173,11 @@ def load_models_and_documents():
|
|
173 |
for root, dirs, files in os.walk(tmpdirname):
|
174 |
for file in files:
|
175 |
if file in ["params.json", "tekken.json"]:
|
176 |
-
src_path = os.path.join(root, file)
|
177 |
dest_path = os.path.join(model_path, file)
|
178 |
if os.path.exists(dest_path):
|
179 |
print(f"{dest_path} already exists, skipping or renaming")
|
180 |
else:
|
181 |
-
shutil.move(
|
182 |
|
183 |
if os.path.exists(f"{model_path}/tekken.json"):
|
184 |
print('EXIST')
|
|
|
173 |
for root, dirs, files in os.walk(tmpdirname):
|
174 |
for file in files:
|
175 |
if file in ["params.json", "tekken.json"]:
|
|
|
176 |
dest_path = os.path.join(model_path, file)
|
177 |
if os.path.exists(dest_path):
|
178 |
print(f"{dest_path} already exists, skipping or renaming")
|
179 |
else:
|
180 |
+
shutil.move(file, model_path)
|
181 |
|
182 |
if os.path.exists(f"{model_path}/tekken.json"):
|
183 |
print('EXIST')
|