Need for Python 3.9+

This commit is contained in:
henryruhs 2023-05-31 23:27:26 +02:00
parent e7edbecff4
commit 442c070229
2 changed files with 4 additions and 4 deletions

View File

@ -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
View File

@ -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')