Nikhitha2310 commited on
Commit
ff6fdec
·
verified ·
1 Parent(s): 9b74dcd

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from tansformers import pipeline
2
+ import streamlit as st
3
+
4
+ inp=st.text_input("Enter the text")
5
+ btn=st.button("Submit")
6
+
7
+ pipe=pipeline(task='translation',model='Helsinki-NLP/opus-mt-en-roa')
8
+
9
+ if(inp and btn):
10
+ st.write(pipe(inp))