mirror of https://github.com/coqui-ai/TTS.git
fix server tests and pylint
parent
16d1f62afa
commit
d1828c9573
|
@ -20,5 +20,6 @@ class DemoServerTest(unittest.TestCase):
|
|||
def test_in_out(self):
|
||||
self._create_random_model()
|
||||
config = load_config(os.path.join(get_tests_input_path(), 'server_config.json'))
|
||||
config['tts_path'] = get_tests_output_path()
|
||||
synthesizer = Synthesizer(config)
|
||||
synthesizer.tts("Better this test works!!")
|
||||
|
|
|
@ -32,7 +32,7 @@ def plot_spectrogram(linear_output, audio, fig_size=(16, 10)):
|
|||
linear_output_ = linear_output.detach().cpu().numpy().squeeze()
|
||||
else:
|
||||
linear_output_ = linear_output
|
||||
spectrogram = audio._denormalize(linear_output_)
|
||||
spectrogram = audio._denormalize(linear_output_) # pylint: disable=protected-access
|
||||
fig = plt.figure(figsize=fig_size)
|
||||
plt.imshow(spectrogram.T, aspect="auto", origin="lower")
|
||||
plt.colorbar()
|
||||
|
|
Loading…
Reference in New Issue