Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ st.header('A text-to-speech (TTS) model in Azerbaijani language')
|
|
93 |
with st.form("my_form"):
|
94 |
option = st.selectbox(
|
95 |
'Choose the model.',
|
96 |
-
|
97 |
|
98 |
text = st.text_area("Text to generate audio from:",max_chars=500)
|
99 |
submitted = st.form_submit_button("Submit")
|
@@ -108,7 +108,7 @@ with st.form("my_form"):
|
|
108 |
MODEL = "last.onnx"
|
109 |
|
110 |
match option:
|
111 |
-
case "1":
|
112 |
MODEL = "last.onnx"
|
113 |
|
114 |
cmd = "echo '" + text + "' | " + BASE_PATH + "/piper/piper --model " + os.path.join(BASE_PATH_MODEL, MODEL) + " --speaker " + SPEAKER_ID + " --output_file " + filename.name
|
|
|
93 |
with st.form("my_form"):
|
94 |
option = st.selectbox(
|
95 |
'Choose the model.',
|
96 |
+
['Model 1'])
|
97 |
|
98 |
text = st.text_area("Text to generate audio from:",max_chars=500)
|
99 |
submitted = st.form_submit_button("Submit")
|
|
|
108 |
MODEL = "last.onnx"
|
109 |
|
110 |
match option:
|
111 |
+
case "Model 1":
|
112 |
MODEL = "last.onnx"
|
113 |
|
114 |
cmd = "echo '" + text + "' | " + BASE_PATH + "/piper/piper --model " + os.path.join(BASE_PATH_MODEL, MODEL) + " --speaker " + SPEAKER_ID + " --output_file " + filename.name
|