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