Pipe1213 commited on
Commit
c612025
1 Parent(s): 002ee7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -13,12 +13,13 @@ import commons
13
  import utils
14
  from data_utils import TextAudioLoader, TextAudioCollate, TextAudioSpeakerLoader, TextAudioSpeakerCollate
15
  from models import SynthesizerTrn
16
- from text.symbols import symbols
 
17
  #from text import text_to_sequence
18
  from scipy.io.wavfile import write
19
  from text import cleaners
20
 
21
- # symbols = symbols_gra # change this later
22
  _symbol_to_id = {s: i for i, s in enumerate(symbols)}
23
  _id_to_symbol = {i: s for i, s in enumerate(symbols)}
24
 
@@ -70,7 +71,7 @@ hps = utils.get_hparams_from_file("configs/vctk_base.json")
70
 
71
  # Define a dictionary to store the model paths for each tab
72
  model_paths = {
73
- "Phonemes_finetuned": "fr_wa_finetuned_pho/G_125000.pth"
74
  }
75
 
76
  # Load the initial model
 
13
  import utils
14
  from data_utils import TextAudioLoader, TextAudioCollate, TextAudioSpeakerLoader, TextAudioSpeakerCollate
15
  from models import SynthesizerTrn
16
+ #from text.symbols import symbols
17
+ from text.symbols_pho import symbols_pho
18
  #from text import text_to_sequence
19
  from scipy.io.wavfile import write
20
  from text import cleaners
21
 
22
+ symbols = symbols_pho # change this later
23
  _symbol_to_id = {s: i for i, s in enumerate(symbols)}
24
  _id_to_symbol = {i: s for i, s in enumerate(symbols)}
25
 
 
71
 
72
  # Define a dictionary to store the model paths for each tab
73
  model_paths = {
74
+ "Phonemes_finetuned": "wallon_pho/G_277000.pth"
75
  }
76
 
77
  # Load the initial model