mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 01:09:22 +01:00
Add a warning for outdated installations
This commit is contained in:
parent
86648d4085
commit
8ab3eca9ec
8
modules/one_click_installer_check.py
Normal file
8
modules/one_click_installer_check.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
from pathlib import Path
|
||||||
|
from modules.logging_colors import logger
|
||||||
|
|
||||||
|
if Path('../webui.py').exists():
|
||||||
|
logger.warning('\nIt looks like you are running an outdated version of '
|
||||||
|
'the one-click-installers.\n'
|
||||||
|
'Please migrate your installation following the instructions here:\n'
|
||||||
|
'https://')
|
@ -1,6 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
import modules.one_click_installer_check
|
||||||
from modules.block_requests import OpenMonkeyPatch, RequestBlocker
|
from modules.block_requests import OpenMonkeyPatch, RequestBlocker
|
||||||
from modules.logging_colors import logger
|
from modules.logging_colors import logger
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user