diff --git a/README.md b/README.md index 9c28ba6..16e97fa 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,8 @@ pinned: false # Crimean Tatar (Qirimli) TTS Text-to-Speech for Crimean Tatar language -![pytest](https://github.com/robinhad/qirimli-tts/actions/workflows/tests.yml/badge.svg) -[![Open In HF🤗 Space ](https://img.shields.io/badge/Open%20Demo-%F0%9F%A4%97%20Space-yellow)](https://huggingface.co/spaces/robinhad/qirimli-tts) +![pytest](https://github.com/robinhad/qirimli-tts/actions/workflows/tests.yml/badge.svg) [![Open In HF🤗 Space ](https://img.shields.io/badge/Open%20Demo-%F0%9F%A4%97%20Space-yellow)](https://huggingface.co/spaces/robinhad/qirimli-tts) -# Attibution +# Attribution Transliteration: [prosvita/crh.transliteration](https://github.com/prosvita/crh.transliteration) diff --git a/app.py b/app.py index 1c9895e..c515556 100644 --- a/app.py +++ b/app.py @@ -1,11 +1,16 @@ +from unittest import result import gradio as gr from crh_transliterator.transliterator import transliterate from crh_preprocessor.preprocessor import preprocess +from datetime import datetime def tts(text: str) -> str: - text = transliterate(text) - text = preprocess(text) + result = transliterate(text) + text = preprocess(result) + print("============================") + print("Original text:", text) + print("Time:", datetime.utcnow()) return text