From 019371c0b613eb53571b50db25db641d36a02fa5 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 25 Sep 2023 20:31:11 -0700 Subject: [PATCH] Lint --- modules/github.py | 4 +--- modules/html_generator.py | 1 - modules/llamacpp_model.py | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/github.py b/modules/github.py index 093f4b9d..282267b6 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 2da2793a..d3e122fd 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -7,7 +7,6 @@ from pathlib import Path 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 6b011e61..baacb0b9 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