Yurii Paniv commited on
Commit
06a4abd
1 Parent(s): 259fa4e

Add emojii

Browse files
Files changed (2) hide show
  1. README.md +6 -6
  2. app.py +5 -5
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
  title: "Ukrainian TTS"
3
- emoji: 🇺🇦
4
- colorFrom: green
5
- colorTo: green
6
  sdk: gradio
7
  app_file: app.py
8
  pinned: false
@@ -26,7 +26,7 @@ https://user-images.githubusercontent.com/5759207/178158485-29a5d496-7eeb-4938-8
26
 
27
  https://user-images.githubusercontent.com/5759207/178158492-8504080e-2f13-43f1-83f0-489b1f9cd66b.mp4
28
 
29
- # How to use :
30
  1. `pip install -r requirements.txt`.
31
  2. Download model from "Releases" tab.
32
  3. Launch as one-time command:
@@ -42,12 +42,12 @@ tts-server --model_path path/to/model.pth \
42
  --config_path path/to/config.json
43
  ```
44
 
45
- # How to train:
46
  1. Refer to ["Nervous beginner guide"](https://tts.readthedocs.io/en/latest/tutorial_for_nervous_beginners.html) in Coqui TTS docs.
47
  2. Instead of provided `config.json` use one from this repo.
48
 
49
 
50
- # Attribution
51
 
52
  - Model training - [Yurii Paniv @robinhad](https://github.com/robinhad)
53
  - Mykyta and Olena dataset - [Yehor Smoliakov @egorsmkv](https://github.com/egorsmkv)
1
  ---
2
  title: "Ukrainian TTS"
3
+ emoji: 🐌
4
+ colorFrom: pink
5
+ colorTo: pink
6
  sdk: gradio
7
  app_file: app.py
8
  pinned: false
26
 
27
  https://user-images.githubusercontent.com/5759207/178158492-8504080e-2f13-43f1-83f0-489b1f9cd66b.mp4
28
 
29
+ # How to use:
30
  1. `pip install -r requirements.txt`.
31
  2. Download model from "Releases" tab.
32
  3. Launch as one-time command:
42
  --config_path path/to/config.json
43
  ```
44
 
45
+ # How to train: 🏋️
46
  1. Refer to ["Nervous beginner guide"](https://tts.readthedocs.io/en/latest/tutorial_for_nervous_beginners.html) in Coqui TTS docs.
47
  2. Instead of provided `config.json` use one from this repo.
48
 
49
 
50
+ # Attribution 🤝
51
 
52
  - Model training - [Yurii Paniv @robinhad](https://github.com/robinhad)
53
  - Mykyta and Olena dataset - [Yehor Smoliakov @egorsmkv](https://github.com/egorsmkv)
app.py CHANGED
@@ -12,13 +12,13 @@ import torch
12
 
13
 
14
  class StressOption(Enum):
15
- AutomaticStress = "Автоматичні наголоси (за словником)"
16
- AutomaticStressWithModel = "Автоматичні наголоси (за допомогою моделі)"
17
 
18
 
19
  class VoiceOption(Enum):
20
- FemaleVoice = "Олена (жіночий)"
21
- MaleVoice = "Микита (чоловічий)"
22
 
23
 
24
  def download(url, file_name):
@@ -105,7 +105,7 @@ iface = gr.Interface(
105
  gr.outputs.Textbox(label="Наголошений текст"),
106
  ],
107
  title="🐸💬🇺🇦 - Coqui TTS",
108
- theme="huggingface",
109
  description="Україномовний🇺🇦 TTS за допомогою Coqui TTS (щоб вручну поставити наголос, використовуйте + перед голосною)",
110
  article="Якщо вам подобається, підтримайте за посиланням: [SUPPORT LINK](https://send.monobank.ua/jar/48iHq4xAXm), "
111
  + "Github: [https://github.com/robinhad/ukrainian-tts](https://github.com/robinhad/ukrainian-tts) \n"
12
 
13
 
14
  class StressOption(Enum):
15
+ AutomaticStress = "Автоматичні наголоси (за словником) 📖"
16
+ AutomaticStressWithModel = "Автоматичні наголоси (за допомогою моделі) 🧮"
17
 
18
 
19
  class VoiceOption(Enum):
20
+ FemaleVoice = "Олена (жіночий) 👩"
21
+ MaleVoice = "Микита (чоловічий) 👨"
22
 
23
 
24
  def download(url, file_name):
105
  gr.outputs.Textbox(label="Наголошений текст"),
106
  ],
107
  title="🐸💬🇺🇦 - Coqui TTS",
108
+ #theme="huggingface",
109
  description="Україномовний🇺🇦 TTS за допомогою Coqui TTS (щоб вручну поставити наголос, використовуйте + перед голосною)",
110
  article="Якщо вам подобається, підтримайте за посиланням: [SUPPORT LINK](https://send.monobank.ua/jar/48iHq4xAXm), "
111
  + "Github: [https://github.com/robinhad/ukrainian-tts](https://github.com/robinhad/ukrainian-tts) \n"