Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
robinhad committed Oct 24, 2022
1 parent 7af0f9b commit 26d34af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
9 changes: 7 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down

0 comments on commit 26d34af

Please sign in to comment.