kovacsvi commited on
Commit
2de073f
·
1 Parent(s): 65e6711

maybe like this?

Browse files
Files changed (1) hide show
  1. utils.py +2 -3
utils.py CHANGED
@@ -130,9 +130,8 @@ def delete_unused_bin_files(model_id: str):
130
  for file_path in files_to_delete:
131
  if os.path.basename(file_path) == "config.json":
132
  continue
133
- if os.path.isfile(file_path):
134
- print(f"Deleting: {file_path}")
135
- os.remove(file_path)
136
 
137
 
138
  def delete_http_folders():
 
130
  for file_path in files_to_delete:
131
  if os.path.basename(file_path) == "config.json":
132
  continue
133
+ print(f"Deleting: {file_path}")
134
+ os.remove(file_path)
 
135
 
136
 
137
  def delete_http_folders():