Yurii Paniv commited on
Commit
7ea68d8
β€’
1 Parent(s): ca51157

#8 Move formatters to package

Browse files
app.py CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
5
  from TTS.utils.synthesizer import Synthesizer
6
  import requests
7
  from os.path import exists
8
- from formatter import preprocess_text
9
  from datetime import datetime
10
  from enum import Enum
11
  import torch
5
  from TTS.utils.synthesizer import Synthesizer
6
  import requests
7
  from os.path import exists
8
+ from ukrainian_tts.formatter import preprocess_text
9
  from datetime import datetime
10
  from enum import Enum
11
  import torch
ukrainian_tts/__init__.py ADDED
File without changes
formatter.py β†’ ukrainian_tts/formatter.py RENAMED
@@ -1,7 +1,7 @@
1
  import num2words
2
  import re
3
- from stress import sentence_to_stress, stress_dict
4
- from stress_with_model import stress_with_model
5
 
6
 
7
  def preprocess_text(text, use_autostress_model=False):
1
  import num2words
2
  import re
3
+ from .stress import sentence_to_stress, stress_dict
4
+ from .stress_with_model import stress_with_model
5
 
6
 
7
  def preprocess_text(text, use_autostress_model=False):
stress.py β†’ ukrainian_tts/stress.py RENAMED
File without changes
stress_with_model.py β†’ ukrainian_tts/stress_with_model.py RENAMED
File without changes