Remove unused imports

This commit is contained in:
oobabooga 2023-03-07 22:56:15 -03:00
parent 19a34941ed
commit 44e6d82185
2 changed files with 1 additions and 8 deletions

View File

@ -1,12 +1,6 @@
import asyncio
import io
import json
import os
from pathlib import Path from pathlib import Path
import gradio as gr import gradio as gr
import requests
import torch
from elevenlabslib import * from elevenlabslib import *
from elevenlabslib.helpers import * from elevenlabslib.helpers import *

View File

@ -1,4 +1,3 @@
import asyncio
from pathlib import Path from pathlib import Path
import gradio as gr import gradio as gr
@ -68,7 +67,7 @@ def output_modifier(string):
string = 'empty reply, try regenerating' string = 'empty reply, try regenerating'
output_file = Path(f'extensions/silero_tts/outputs/{wav_idx:06d}.wav') 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'<audio src="file/{output_file.as_posix()}" controls></audio>' string = f'<audio src="file/{output_file.as_posix()}" controls></audio>'
wav_idx += 1 wav_idx += 1