kingpreyansh's picture
Upload 437 files
ecef837
raw
history blame
No virus
319 Bytes
import launch
import os
req_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), "requirements.txt")
with open(req_file) as file:
for lib in file:
lib = lib.strip()
if not launch.is_installed(lib):
launch.run_pip(f"install {lib}", f"sd-webui-controlnet requirement: {lib}")