From 44e6d821859f31e6fa504899bf2bf42cbb28c189 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 7 Mar 2023 22:56:15 -0300 Subject: [PATCH] Remove unused imports --- extensions/elevenlabs_tts/script.py | 6 ------ extensions/silero_tts/script.py | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/extensions/elevenlabs_tts/script.py b/extensions/elevenlabs_tts/script.py index 24741837..90d61efc 100644 --- a/extensions/elevenlabs_tts/script.py +++ b/extensions/elevenlabs_tts/script.py @@ -1,12 +1,6 @@ -import asyncio -import io -import json -import os from pathlib import Path import gradio as gr -import requests -import torch from elevenlabslib import * from elevenlabslib.helpers import * diff --git a/extensions/silero_tts/script.py b/extensions/silero_tts/script.py index f697d0e2..050392d6 100644 --- a/extensions/silero_tts/script.py +++ b/extensions/silero_tts/script.py @@ -1,4 +1,3 @@ -import asyncio from pathlib import Path import gradio as gr @@ -68,7 +67,7 @@ def output_modifier(string): string = 'empty reply, try regenerating' output_file = Path(f'extensions/silero_tts/outputs/{wav_idx:06d}.wav') - audio = model.save_wav(text=string, speaker=params['speaker'], sample_rate=int(params['sample_rate']), audio_path=str(output_file)) + model.save_wav(text=string, speaker=params['speaker'], sample_rate=int(params['sample_rate']), audio_path=str(output_file)) string = f'' wav_idx += 1