mirror of
https://github.com/pharmapsychotic/clip-interrogator-ext.git
synced 2026-04-28 10:11:27 +00:00
Better method to ensure latest CLIP Interrogator library version is installed.
This commit is contained in:
14
install.py
Normal file
14
install.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import launch
|
||||
|
||||
CI_VERSION = "0.5.4"
|
||||
needs_install = False
|
||||
|
||||
try:
|
||||
import clip_interrogator
|
||||
if clip_interrogator.__version__ != CI_VERSION:
|
||||
needs_install = True
|
||||
except ImportError:
|
||||
needs_install = True
|
||||
|
||||
if needs_install:
|
||||
launch.run_pip(f"install clip-interrogator=={CI_VERSION}", "requirements for CLIP Interrogator")
|
||||
Reference in New Issue
Block a user