Yurii Paniv commited on
Commit
26d34af
1 Parent(s): 7af0f9b

Add logging

Browse files
Files changed (2) hide show
  1. README.md +2 -3
  2. app.py +7 -2
README.md CHANGED
@@ -12,9 +12,8 @@ pinned: false
12
  # Crimean Tatar (Qirimli) TTS
13
  Text-to-Speech for Crimean Tatar language
14
 
15
- ![pytest](https://github.com/robinhad/qirimli-tts/actions/workflows/tests.yml/badge.svg)
16
- [![Open In HF🤗 Space ](https://img.shields.io/badge/Open%20Demo-%F0%9F%A4%97%20Space-yellow)](https://huggingface.co/spaces/robinhad/qirimli-tts)
17
 
18
- # Attibution
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
+ ![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)
 
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
- text = transliterate(text)
8
- text = preprocess(text)
 
 
 
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