mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 09:19:23 +01:00
Remove unused imports
This commit is contained in:
parent
19a34941ed
commit
44e6d82185
@ -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 *
|
||||
|
||||
|
@ -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'<audio src="file/{output_file.as_posix()}" controls></audio>'
|
||||
wav_idx += 1
|
||||
|
Loading…
Reference in New Issue
Block a user