mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-21 23:57:58 +01:00
Lint
This commit is contained in:
parent
814520fed1
commit
019371c0b6
@ -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)
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,5 @@
|
||||
import re
|
||||
from functools import partial
|
||||
from pathlib import Path
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
|
Loading…
Reference in New Issue
Block a user