Translation / app.py
Nikhitha2310's picture
Update app.py
19fc902 verified
raw
history blame contribute delete
253 Bytes
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'])