Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from google_trans_new import google_translator
import streamlit as st
translator = google_translator()
st.title("Language Translator")
text = st.text_input("Enter a text")
translate = translator.translate(text, lang_tgt='fr')
st.write(translate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment