Aytaj commited on
Commit
a51fa5b
·
1 Parent(s): a2ac978

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -4,6 +4,7 @@ from transformers import pipeline
4
 
5
  st.title("Translate to French")
6
  sentence = st.text_input("Enter your sentence:")
 
7
  if st.button("Translate"):
8
  pipe = pipeline(model="facebook/m2m100_418M")
9
  translation = pipe(sentence, target_lang="fr")[0]["translation_text"]
 
4
 
5
  st.title("Translate to French")
6
  sentence = st.text_input("Enter your sentence:")
7
+
8
  if st.button("Translate"):
9
  pipe = pipeline(model="facebook/m2m100_418M")
10
  translation = pipe(sentence, target_lang="fr")[0]["translation_text"]