File size: 229 Bytes
ff6fdec
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from tansformers 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))