Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
classifier = pipeline("
|
5 |
|
6 |
def main():
|
7 |
-
st.title("
|
8 |
|
9 |
with st.form("text_field"):
|
10 |
text = st.text_area('enter some text:')
|
11 |
-
|
12 |
-
clicked = st.form_submit_button("
|
13 |
if clicked:
|
14 |
results = classifier([text])
|
15 |
st.json(results)
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
classifier = pipeline("translation", model="sakunich/Translation")
|
5 |
|
6 |
def main():
|
7 |
+
st.title("Translation En to Ko")
|
8 |
|
9 |
with st.form("text_field"):
|
10 |
text = st.text_area('enter some text:')
|
11 |
+
|
12 |
+
clicked = st.form_submit_button("Translate")
|
13 |
if clicked:
|
14 |
results = classifier([text])
|
15 |
st.json(results)
|