Spaces:
Running
Running
Yurii Paniv
commited on
Commit
·
26d34af
1
Parent(s):
7af0f9b
Add logging
Browse files
README.md
CHANGED
|
@@ -12,9 +12,8 @@ pinned: false
|
|
| 12 |
# Crimean Tatar (Qirimli) TTS
|
| 13 |
Text-to-Speech for Crimean Tatar language
|
| 14 |
|
| 15 |
-

|
| 16 |
-
[](https://huggingface.co/spaces/robinhad/qirimli-tts)
|
| 17 |
|
| 18 |
-
#
|
| 19 |
|
| 20 |
Transliteration: [prosvita/crh.transliteration](https://github.com/prosvita/crh.transliteration)
|
|
|
|
| 12 |
# Crimean Tatar (Qirimli) TTS
|
| 13 |
Text-to-Speech for Crimean Tatar language
|
| 14 |
|
| 15 |
+
 [](https://huggingface.co/spaces/robinhad/qirimli-tts)
|
|
|
|
| 16 |
|
| 17 |
+
# Attribution
|
| 18 |
|
| 19 |
Transliteration: [prosvita/crh.transliteration](https://github.com/prosvita/crh.transliteration)
|
app.py
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from crh_transliterator.transliterator import transliterate
|
| 3 |
from crh_preprocessor.preprocessor import preprocess
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
def tts(text: str) -> str:
|
| 7 |
-
|
| 8 |
-
text = preprocess(
|
|
|
|
|
|
|
|
|
|
| 9 |
return text
|
| 10 |
|
| 11 |
|
|
|
|
| 1 |
+
from unittest import result
|
| 2 |
import gradio as gr
|
| 3 |
from crh_transliterator.transliterator import transliterate
|
| 4 |
from crh_preprocessor.preprocessor import preprocess
|
| 5 |
+
from datetime import datetime
|
| 6 |
|
| 7 |
|
| 8 |
def tts(text: str) -> str:
|
| 9 |
+
result = transliterate(text)
|
| 10 |
+
text = preprocess(result)
|
| 11 |
+
print("============================")
|
| 12 |
+
print("Original text:", text)
|
| 13 |
+
print("Time:", datetime.utcnow())
|
| 14 |
return text
|
| 15 |
|
| 16 |
|