aslanovaf commited on
Commit
d24c6e7
·
verified ·
1 Parent(s): b0653f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -123,7 +123,7 @@ st.header('A text-to-speech (TTS) model in Azerbaijani language')
123
  with st.form("my_form"):
124
  option = st.selectbox(
125
  'Choose the model.',
126
- ('VITS Model 1','VITS Model 2','FH'))
127
 
128
  text = st.text_area("Text to generate audio from:",max_chars=500)
129
  # Default parameter values
@@ -142,8 +142,8 @@ with st.form("my_form"):
142
  MODEL = "last2.onnx"
143
  case "VITS Model 2":
144
  MODEL = "last.onnx"
145
- case "FH":
146
- MODEL = "last_FH.onnx"
147
 
148
 
149
  cmd = "echo '" + text + "' | " + BASE_PATH + "/piper/piper --model " + os.path.join(BASE_PATH_MODEL, MODEL) + " --speaker " + SPEAKER_ID + " --output_file " + filename.name + " --length-scale " + str(length_scale)
 
123
  with st.form("my_form"):
124
  option = st.selectbox(
125
  'Choose the model.',
126
+ ('VITS Model 1','VITS Model 2'))
127
 
128
  text = st.text_area("Text to generate audio from:",max_chars=500)
129
  # Default parameter values
 
142
  MODEL = "last2.onnx"
143
  case "VITS Model 2":
144
  MODEL = "last.onnx"
145
+ # case "FH":
146
+ # MODEL = "last_FH.onnx"
147
 
148
 
149
  cmd = "echo '" + text + "' | " + BASE_PATH + "/piper/piper --model " + os.path.join(BASE_PATH_MODEL, MODEL) + " --speaker " + SPEAKER_ID + " --output_file " + filename.name + " --length-scale " + str(length_scale)