kritias commited on
Commit
2ec171f
1 Parent(s): 37d44c1

Revert : Random Initial Text

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -9,7 +9,6 @@ from src import commons, utils
9
  import gradio as gr
10
  from src.models import SynthesizerTrn
11
  from src.text import text_to_sequence, _clean_text
12
- import random
13
 
14
  limitation = os.getenv("SYSTEM") == "spaces" # limit text and audio length in huggingface spaces
15
 
@@ -78,7 +77,7 @@ if __name__ == '__main__':
78
  models_tts = []
79
  name = '早瀬ユウカ(ブルアカ) TTS'
80
  lang = '日本語 (Japanese)'
81
- example = 'おはようございます、先生。今日も天気がいいですね。'
82
  config_path = f"config/config.json"
83
  model_path = f"model/G_67200.pth"
84
  cover_path = f"resource/cover.png"
@@ -93,8 +92,6 @@ if __name__ == '__main__':
93
  model.eval()
94
  speaker_ids = [0]
95
  speakers = [name]
96
- initial_seed = random.randint(0, 3)
97
- example = initial_values[initial_seed]
98
 
99
  t = 'vits'
100
  models_tts.append((name, cover_path, speakers, lang, example,
 
9
  import gradio as gr
10
  from src.models import SynthesizerTrn
11
  from src.text import text_to_sequence, _clean_text
 
12
 
13
  limitation = os.getenv("SYSTEM") == "spaces" # limit text and audio length in huggingface spaces
14
 
 
77
  models_tts = []
78
  name = '早瀬ユウカ(ブルアカ) TTS'
79
  lang = '日本語 (Japanese)'
80
+ example = 'ブルーアーカ通り、完璧!'
81
  config_path = f"config/config.json"
82
  model_path = f"model/G_67200.pth"
83
  cover_path = f"resource/cover.png"
 
92
  model.eval()
93
  speaker_ids = [0]
94
  speakers = [name]
 
 
95
 
96
  t = 'vits'
97
  models_tts.append((name, cover_path, speakers, lang, example,