Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -60,8 +60,8 @@ st.write("Translate subtitles from one language to another.")
|
|
60 |
url = "https://huggingface.co/Lenylvt/LanguageISO/resolve/main/iso.md"
|
61 |
language_options = fetch_languages(url)
|
62 |
|
63 |
-
|
64 |
-
|
65 |
|
66 |
file_input = st.file_uploader("Upload SRT File", type=["srt"])
|
67 |
|
|
|
60 |
url = "https://huggingface.co/Lenylvt/LanguageISO/resolve/main/iso.md"
|
61 |
language_options = fetch_languages(url)
|
62 |
|
63 |
+
source_language = st.selectbox("Select Source Language", options=language_options, format_func=lambda x: x[1])
|
64 |
+
target_language = st.selectbox("Select Target Language", options=language_options, format_func=lambda x: x[1])
|
65 |
|
66 |
file_input = st.file_uploader("Upload SRT File", type=["srt"])
|
67 |
|