Spaces:
Sleeping
Sleeping
Nikhitha2310
commited on
Create app.py
Browse files
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))
|