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