Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
oobabooga committed Dec 20, 2023
1 parent 2289e90 commit fadb295
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion extensions/coqui_tts/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
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

Expand Down
4 changes: 2 additions & 2 deletions modules/logging_colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def emit(self, record):
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
Expand Down
2 changes: 1 addition & 1 deletion modules/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fadb295

Please sign in to comment.