Skip to content

Commit

Permalink
Update v1.10 (hotfix)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlafKing committed Sep 13, 2023
1 parent c56c4a6 commit c1b13e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/civitai_file_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def read_chunks(file, size=io.DEFAULT_BUFFER_SIZE):
hash_value = h.hexdigest()
return hash_value

def save_json(file_path):
def save_all_json(file_path):
model_hash = gen_sha256(file_path)

api_url = f"https://civitai.com/api/v1/model-versions/by-hash/{model_hash}"
Expand Down Expand Up @@ -292,7 +292,7 @@ def save_all_tags(items, tag_finish, progress=gr.Progress()):
gr.Textbox.update(value=number))
file_name = os.path.basename(file_path)
progress(files_done / total_files, desc=f"Processing file: {file_name}")
save_json(file_path)
save_all_json(file_path)
files_done += 1

progress(1, desc=f"All files are processed!")
Expand Down

0 comments on commit c1b13e1

Please sign in to comment.