Need for Python 3.9+
This commit is contained in:
parent
e7edbecff4
commit
442c070229
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -8,9 +8,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.8
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.9
|
||||||
- run: pip install flake8
|
- run: pip install flake8
|
||||||
- run: flake8 run.py core
|
- run: flake8 run.py core
|
||||||
|
4
run.py
4
run.py
@ -62,8 +62,8 @@ def limit_resources():
|
|||||||
|
|
||||||
|
|
||||||
def pre_check():
|
def pre_check():
|
||||||
if sys.version_info < (3, 8):
|
if sys.version_info < (3, 9):
|
||||||
quit('Python version is not supported - please upgrade to 3.8 or higher')
|
quit('Python version is not supported - please upgrade to 3.9 or higher')
|
||||||
if not shutil.which('ffmpeg'):
|
if not shutil.which('ffmpeg'):
|
||||||
quit('ffmpeg is not installed!')
|
quit('ffmpeg is not installed!')
|
||||||
model_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'inswapper_128.onnx')
|
model_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'inswapper_128.onnx')
|
||||||
|
Loading…
Reference in New Issue
Block a user