diff --git a/modules/github.py b/modules/github.py index 093f4b9dd4..282267b6be 100644 --- a/modules/github.py +++ b/modules/github.py @@ -1,8 +1,6 @@ import subprocess from pathlib import Path -from modules.logging_colors import logger - new_extensions = set() @@ -34,7 +32,7 @@ def clone_or_pull_repository(github_url): yield f"Cloning {github_url}..." clone_output = subprocess.check_output(["git", "clone", github_url, repo_path], stderr=subprocess.STDOUT) 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() except subprocess.CalledProcessError as e: return str(e) diff --git a/modules/html_generator.py b/modules/html_generator.py index 2da2793afb..d3e122fdad 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -7,7 +7,6 @@ import markdown from PIL import Image, ImageOps -from modules.logging_colors import logger from modules.utils import get_available_chat_styles # This is to store the paths to the thumbnails of the profile pictures diff --git a/modules/llamacpp_model.py b/modules/llamacpp_model.py index 6b011e6122..baacb0b952 100644 --- a/modules/llamacpp_model.py +++ b/modules/llamacpp_model.py @@ -1,6 +1,5 @@ import re from functools import partial -from pathlib import Path import numpy as np import torch