devve1 commited on
Commit
5aa77b2
1 Parent(s): 8d0fe69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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(src_path, model_path)
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')