Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache fsspec downloaded files #2132

Merged
merged 12 commits into from
Nov 9, 2022
Prev Previous commit
Next Next commit
Make style
  • Loading branch information
erogol committed Nov 9, 2022
commit ffeeabd6c817be31c6dfa8a731ecceab3d72aad7
8 changes: 5 additions & 3 deletions tests/zoo_tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@


def test_run_all_models():
"""Check if all the models are downloadable and tts models run correctly.
"""
"""Check if all the models are downloadable and tts models run correctly."""
print(" > Run synthesizer with all the models.")
download_dir = get_user_data_dir("tts")
output_path = os.path.join(get_tests_output_path(), "output.wav")
Expand Down Expand Up @@ -46,7 +45,10 @@ def test_run_all_models():
)
else:
# single-speaker model
run_cli(f"tts --model_name {model_name} " f'--text "This is an example." --out_path "{output_path}" --progress_bar False')
run_cli(
f"tts --model_name {model_name} "
f'--text "This is an example." --out_path "{output_path}" --progress_bar False'
)
# remove downloaded models
shutil.rmtree(download_dir)
else:
Expand Down