From 90d4f08d6c998c3bb485264615ff37dfdfed82cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=B6lge?= Date: Fri, 29 Jan 2021 01:36:21 +0100 Subject: [PATCH] reorder imports --- TTS/tts/utils/synthesis.py | 2 ++ setup.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TTS/tts/utils/synthesis.py b/TTS/tts/utils/synthesis.py index 7e71df64..be587211 100644 --- a/TTS/tts/utils/synthesis.py +++ b/TTS/tts/utils/synthesis.py @@ -1,3 +1,5 @@ +import os +os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import pkg_resources installed = {pkg.key for pkg in pkg_resources.working_set} #pylint: disable=not-an-iterable if 'tensorflow' in installed or 'tensorflow-gpu' in installed: diff --git a/setup.py b/setup.py index 5c75ff25..f58890bb 100644 --- a/setup.py +++ b/setup.py @@ -11,8 +11,9 @@ from distutils.version import LooseVersion import numpy import setuptools.command.build_py import setuptools.command.develop -from Cython.Build import cythonize from setuptools import find_packages, setup +from Cython.Build import cythonize + if LooseVersion(sys.version) < LooseVersion("3.6") or LooseVersion(sys.version) > LooseVersion("3.9"): raise RuntimeError(