Kamtera commited on
Commit
6cd3aee
1 Parent(s): 412fb14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -8,6 +8,12 @@ from TTS.utils.synthesizer import Synthesizer
8
 
9
 
10
  MAX_TXT_LEN = 800
 
 
 
 
 
 
11
 
12
 
13
  def tts(text: str):
@@ -16,14 +22,7 @@ def tts(text: str):
16
  print(f"Input text was cutoff since it went over the {MAX_TXT_LEN} character limit.")
17
  print(text)
18
 
19
- model_path = os.getcwd() + "/best_model.pth"
20
- config_path = os.getcwd() + "/config.json"
21
-
22
-
23
- synthesizer = Synthesizer(
24
- model_path, config_path
25
- )
26
-
27
 
28
  # synthesize
29
  if synthesizer is None:
 
8
 
9
 
10
  MAX_TXT_LEN = 800
11
+ model_path = os.getcwd() + "/best_model.pth"
12
+ config_path = os.getcwd() + "/config.json"
13
+
14
+ synthesizer = Synthesizer(
15
+ model_path, config_path
16
+ )
17
 
18
 
19
  def tts(text: str):
 
22
  print(f"Input text was cutoff since it went over the {MAX_TXT_LEN} character limit.")
23
  print(text)
24
 
25
+
 
 
 
 
 
 
 
26
 
27
  # synthesize
28
  if synthesizer is None: