Spaces:
Running
Running
Yurii Paniv
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from TTS.utils.synthesizer import Synthesizer
|
|
| 7 |
import requests
|
| 8 |
from os.path import exists
|
| 9 |
from formatter import preprocess_text
|
| 10 |
-
from datetime import
|
| 11 |
|
| 12 |
MODEL_NAMES = [
|
| 13 |
"uk/mykyta/vits-tts"
|
|
@@ -49,7 +49,7 @@ def tts(text: str, model_name: str):
|
|
| 49 |
text = preprocess_text(text)
|
| 50 |
text_limit = 300
|
| 51 |
text = text if len(text) < text_limit else text[0:text_limit] # mitigate crashes on hf space
|
| 52 |
-
print(text, utcnow())
|
| 53 |
synthesizer = MODELS.get(model_name, None)
|
| 54 |
if synthesizer is None:
|
| 55 |
raise NameError("model not found")
|
|
|
|
| 7 |
import requests
|
| 8 |
from os.path import exists
|
| 9 |
from formatter import preprocess_text
|
| 10 |
+
from datetime import datetime
|
| 11 |
|
| 12 |
MODEL_NAMES = [
|
| 13 |
"uk/mykyta/vits-tts"
|
|
|
|
| 49 |
text = preprocess_text(text)
|
| 50 |
text_limit = 300
|
| 51 |
text = text if len(text) < text_limit else text[0:text_limit] # mitigate crashes on hf space
|
| 52 |
+
print(text, datetime.utcnow())
|
| 53 |
synthesizer = MODELS.get(model_name, None)
|
| 54 |
if synthesizer is None:
|
| 55 |
raise NameError("model not found")
|