Lenylvt commited on
Commit
d112fe6
·
verified ·
1 Parent(s): cb2ba78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- source_language = st.selectbox("Select Source Language", options=language_options, format_func=lambda x: x[1])
67
- target_language = 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
 
 
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