Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
QIN2DIM committed Oct 21, 2023
1 parent 3b62da3 commit 0b97359
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions automation/annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Author : QIN2DIM
# GitHub : https://github.com/QIN2DIM
# Description:
from __future__ import annotations

import inspect
import os
import sys
Expand Down
7 changes: 4 additions & 3 deletions automation/mini_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def quick_development() -> int | None:
except GithubException as err:
if err.status == 422:
logger.error(
f"The model file already exists, please manually replace the file with the same name - url={repo.releases_url}",
f"The model file already exists, "
f"please manually replace the file with the same name - url={repo.releases_url}",
url=repo.releases_url,
)
except Exception as err:
Expand All @@ -72,10 +73,10 @@ def quick_development() -> int | None:
return asset.id


def upgrade_objects(aid):
def upgrade_objects(aid_):
from automation.rolling_upgrade import rolling_upgrade

rolling_upgrade(aid)
rolling_upgrade(aid_)


if __name__ == "__main__":
Expand Down
9 changes: 7 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ opencv-python~=4.8.0.76
pyyaml
loguru
fire

transformers
hcaptcha-challenger[sentinel]
bs4
hcaptcha-challenger
PyGitHub
playwright
bs4
tqdm
httpx

0 comments on commit 0b97359

Please sign in to comment.