This commit is contained in:
oobabooga 2023-09-25 20:31:11 -07:00
parent 814520fed1
commit 019371c0b6
3 changed files with 1 additions and 5 deletions

View File

@ -1,8 +1,6 @@
import subprocess import subprocess
from pathlib import Path from pathlib import Path
from modules.logging_colors import logger
new_extensions = set() new_extensions = set()
@ -34,7 +32,7 @@ def clone_or_pull_repository(github_url):
yield f"Cloning {github_url}..." yield f"Cloning {github_url}..."
clone_output = subprocess.check_output(["git", "clone", github_url, repo_path], stderr=subprocess.STDOUT) clone_output = subprocess.check_output(["git", "clone", github_url, repo_path], stderr=subprocess.STDOUT)
new_extensions.add(repo_name) new_extensions.add(repo_name)
yield(f"The extension `{repo_name}` has been downloaded.\n\nPlease close the the web UI completely and launch it again to be able to load it.") yield f"The extension `{repo_name}` has been downloaded.\n\nPlease close the the web UI completely and launch it again to be able to load it."
return clone_output.decode() return clone_output.decode()
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
return str(e) return str(e)

View File

@ -7,7 +7,6 @@ from pathlib import Path
import markdown import markdown
from PIL import Image, ImageOps from PIL import Image, ImageOps
from modules.logging_colors import logger
from modules.utils import get_available_chat_styles from modules.utils import get_available_chat_styles
# This is to store the paths to the thumbnails of the profile pictures # This is to store the paths to the thumbnails of the profile pictures

View File

@ -1,6 +1,5 @@
import re import re
from functools import partial from functools import partial
from pathlib import Path
import numpy as np import numpy as np
import torch import torch