Spaces:
Sleeping
Sleeping
| from transformers import pipeline | |
| import streamlit as st | |
| inp=st.text_input("Enter the text") | |
| btn=st.button("Submit") | |
| pipe=pipeline(task='translation',model='Helsinki-NLP/opus-mt-en-roa') | |
| if(inp and btn): | |
| st.write(pipe(inp)[0]['translation_text']) |