From 1c378965e191558e8808c7b9afde9753a0a9e343 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 16 Mar 2023 10:18:34 -0300 Subject: [PATCH] Remove unused imports --- extensions/elevenlabs_tts/script.py | 4 ++-- modules/models.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/extensions/elevenlabs_tts/script.py b/extensions/elevenlabs_tts/script.py index 90d61efc..b8171063 100644 --- a/extensions/elevenlabs_tts/script.py +++ b/extensions/elevenlabs_tts/script.py @@ -1,8 +1,8 @@ from pathlib import Path import gradio as gr -from elevenlabslib import * -from elevenlabslib.helpers import * +from elevenlabslib import ElevenLabsUser +from elevenlabslib.helpers import save_bytes_to_path params = { 'activate': True, diff --git a/modules/models.py b/modules/models.py index a934514b..2a7dca62 100644 --- a/modules/models.py +++ b/modules/models.py @@ -16,8 +16,7 @@ transformers.logging.set_verbosity_error() local_rank = None if shared.args.flexgen: - from flexgen.flex_opt import (CompressionConfig, ExecutionEnv, OptLM, - Policy, str2bool) + from flexgen.flex_opt import CompressionConfig, ExecutionEnv, OptLM, Policy if shared.args.deepspeed: import deepspeed