Skip to content

Commit

Permalink
[core] prevent inpainting data to be saved into execution.json
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaciasc committed Feb 28, 2024
1 parent 66f1f58 commit 57f5888
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ipol_demo/modules/core/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,11 @@ def save_execution(demo_id, clientdata, response, work_dir, files):
list(map(files.pop, file_keys))
clientdata["files"] = len(file_keys)

# Remove possible inpainting data files
file_keys = [key for key in files if key.startswith("inpainting_")]
list(map(files.pop, file_keys))
clientdata["blobs"] = len(file_keys)

execution_json = {}
execution_json["demo_id"] = demo_id
execution_json["request"] = clientdata
Expand Down

0 comments on commit 57f5888

Please sign in to comment.