Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import importlib
|
|
3 |
from io import BytesIO
|
4 |
import time
|
5 |
|
6 |
-
st.set_page_config(page_title="Multilingual Translator", layout="centered")
|
7 |
|
8 |
# Import LANGUAGES from translation.py
|
9 |
from translation import LANGUAGES
|
@@ -41,7 +41,7 @@ def main():
|
|
41 |
if user_text:
|
42 |
st.session_state.user_text = user_text.read().decode("utf-8").strip()
|
43 |
st.markdown(f"<small style='color: grey;'>Characters: {len(st.session_state.user_text)}/1000</small>", unsafe_allow_html=True)
|
44 |
-
st.button("Translate", key="translate_btn", on_click=trigger_translation, args=(translation, lang_detect, audio_processor,)
|
45 |
|
46 |
# Output Section
|
47 |
col_output = st.container()
|
|
|
3 |
from io import BytesIO
|
4 |
import time
|
5 |
|
6 |
+
st.set_page_config(page_title="Multilingual Translator", page_icon="🌐", layout="centered")
|
7 |
|
8 |
# Import LANGUAGES from translation.py
|
9 |
from translation import LANGUAGES
|
|
|
41 |
if user_text:
|
42 |
st.session_state.user_text = user_text.read().decode("utf-8").strip()
|
43 |
st.markdown(f"<small style='color: grey;'>Characters: {len(st.session_state.user_text)}/1000</small>", unsafe_allow_html=True)
|
44 |
+
st.button("Translate", key="translate_btn", on_click=trigger_translation, args=(translation, lang_detect, audio_processor,))
|
45 |
|
46 |
# Output Section
|
47 |
col_output = st.container()
|