mirror of
https://github.com/imrayya/stable-diffusion-webui-Prompt_Generator.git
synced 2024-01-11 09:00:44 +01:00
Doesn't run pip when already installed
This commit is contained in:
+4
-1
@@ -1,2 +1,5 @@
|
|||||||
import launch
|
import launch
|
||||||
launch.run_pip("install --upgrade transformers", "Requirment of Prompt-Maker")
|
if not launch.is_installed("transformers"):
|
||||||
|
launch.run_pip("install --upgrade transformers", "Requirement of Prompt-Maker")
|
||||||
|
if not launch.is_installed("torch"):
|
||||||
|
launch.run_pip("install --upgrade torch", "Requirement of Prompt-Maker")
|
||||||
Reference in New Issue
Block a user