mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-21 15:48:04 +01:00
Lint
This commit is contained in:
parent
2289e9031e
commit
fadb295d4d
@ -10,7 +10,6 @@ from TTS.api import TTS
|
||||
from TTS.utils.synthesizer import Synthesizer
|
||||
|
||||
from modules import chat, shared, ui_chat
|
||||
from modules.logging_colors import logger
|
||||
from modules.ui import create_refresh_button
|
||||
from modules.utils import gradio
|
||||
|
||||
|
@ -27,10 +27,10 @@ def setup_logging():
|
||||
def get(self):
|
||||
return self.buffer
|
||||
|
||||
from rich.theme import Theme
|
||||
from rich.logging import RichHandler
|
||||
from rich.console import Console
|
||||
from rich.logging import RichHandler
|
||||
from rich.pretty import install as pretty_install
|
||||
from rich.theme import Theme
|
||||
from rich.traceback import install as traceback_install
|
||||
|
||||
level = logging.DEBUG
|
||||
|
@ -414,8 +414,8 @@ def ExLlamav2_HF_loader(model_name):
|
||||
|
||||
def HQQ_loader(model_name):
|
||||
try:
|
||||
from hqq.core.quantize import HQQBackend, HQQLinear
|
||||
from hqq.engine.hf import HQQModelForCausalLM
|
||||
from hqq.core.quantize import HQQLinear, HQQBackend
|
||||
except ModuleNotFoundError:
|
||||
logger.error("HQQ is not installed. You can install it with:\n\npip install hqq")
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user