mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-14 23:06:14 +08:00
fix version
This commit is contained in:
parent
77ce4d7c4e
commit
d57eba1ca2
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@ build/
|
|||||||
dist/
|
dist/
|
||||||
.venv/
|
.venv/
|
||||||
.direnv/
|
.direnv/
|
||||||
|
*.spec
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
*.egg
|
*.egg
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
4
rembg.py
Normal file
4
rembg.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
from rembg.cli import main
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
@ -22,7 +22,7 @@ from .session_factory import new_session
|
|||||||
|
|
||||||
|
|
||||||
@click.group()
|
@click.group()
|
||||||
@click.version_option()
|
@click.version_option(version=_version.get_versions()["version"])
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -351,7 +351,3 @@ def s(port: int, log_level: str) -> None:
|
|||||||
return await asyncify(im_without_bg)(file, commons)
|
return await asyncify(im_without_bg)(file, commons)
|
||||||
|
|
||||||
uvicorn.run(app, host="0.0.0.0", port=port, log_level=log_level)
|
uvicorn.run(app, host="0.0.0.0", port=port, log_level=log_level)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user