Spaces:
Running
Running
Yurii Paniv
commited on
Commit
·
7af0f9b
1
Parent(s):
faa3919
Add footer
Browse files
README.md
CHANGED
@@ -9,7 +9,7 @@ app_file: app.py
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
-
#
|
13 |
Text-to-Speech for Crimean Tatar language
|
14 |
|
15 |

|
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
+
# Crimean Tatar (Qirimli) TTS
|
13 |
Text-to-Speech for Crimean Tatar language
|
14 |
|
15 |

|
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()
|