import streamlit as st from langdetect import detect text = st.text_area('Please enter some text for language detection !!') if text: detected_language = detect(text) st.write(f'The detected language is: {detected_language}')