sakunich commited on
Commit
22d2430
1 Parent(s): 64beece

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,15 +1,15 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
- classifier = pipeline("translation_en_to_ko", model="sakunich/Translation")
5
 
6
  def main():
7
- st.title("Yelp review")
8
 
9
  with st.form("text_field"):
10
  text = st.text_area('enter some text:')
11
- # clicked==True only when the button is clicked
12
- clicked = st.form_submit_button("Submit text")
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)