Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"]
|