Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,13 +12,15 @@ lang_options = {
|
|
| 12 |
}
|
| 13 |
|
| 14 |
# Dil seçimi
|
|
|
|
|
|
|
| 15 |
selected_lang = st.selectbox("Lütfen ses dili seçiniz", list(lang_options.keys()))
|
| 16 |
lang = lang_options[selected_lang]
|
| 17 |
|
| 18 |
uploaded_file = st.file_uploader("Upload txt file", type=['txt'])
|
| 19 |
|
| 20 |
|
| 21 |
-
def filetospeech(file_path, lang_input=
|
| 22 |
metin = ""
|
| 23 |
try:
|
| 24 |
with open(file_path, 'r', encoding='utf-8') as file:
|
|
|
|
| 12 |
}
|
| 13 |
|
| 14 |
# Dil seçimi
|
| 15 |
+
input_language=st.selectbox("Lütfen metin dilini seçiniz", list(lang_options.keys()))
|
| 16 |
+
lang_input=lang_options[input_language]
|
| 17 |
selected_lang = st.selectbox("Lütfen ses dili seçiniz", list(lang_options.keys()))
|
| 18 |
lang = lang_options[selected_lang]
|
| 19 |
|
| 20 |
uploaded_file = st.file_uploader("Upload txt file", type=['txt'])
|
| 21 |
|
| 22 |
|
| 23 |
+
def filetospeech(file_path, lang_input=lang_input, slow=False):
|
| 24 |
metin = ""
|
| 25 |
try:
|
| 26 |
with open(file_path, 'r', encoding='utf-8') as file:
|