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

Add footer

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +9 -0
README.md CHANGED
@@ -9,7 +9,7 @@ app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- # 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)
 
9
  pinned: false
10
  ---
11
 
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)
app.py CHANGED
@@ -9,6 +9,14 @@ def tts(text: str) -> str:
9
  return text
10
 
11
 
 
 
 
 
 
 
 
 
12
  iface = gr.Interface(
13
  fn=tts,
14
  inputs=[
@@ -23,5 +31,6 @@ iface = gr.Interface(
23
  ["Sağlıqnen qalıñız! Sağlıqnen barıñız! "],
24
  ["Селям! Ишлер насыл?"],
25
  ],
 
26
  )
27
  iface.launch()
 
9
  return text
10
 
11
 
12
+ badge = (
13
+ "https://visitor-badge-reloaded.herokuapp.com/badge?page_id=robinhad.qirimli-tts"
14
+ )
15
+
16
+ with open("README.md") as file:
17
+ article = file.read()
18
+ article = article[article.find("---\n", 4) + 5 : :]
19
+
20
  iface = gr.Interface(
21
  fn=tts,
22
  inputs=[
 
31
  ["Sağlıqnen qalıñız! Sağlıqnen barıñız! "],
32
  ["Селям! Ишлер насыл?"],
33
  ],
34
+ article=article + f'\n <center><img src="{badge}" alt="visitors badge"/></center>',
35
  )
36
  iface.launch()