duwing commited on
Commit
9c6f4a1
·
verified ·
1 Parent(s): 404f618

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -64,4 +64,11 @@ def movie_evaluation_predict(sentence):
64
  st.write("(긍정 확률 : %.2f) 긍정적인 영화 평가입니다." % predict_value)
65
 
66
  sentiment_model = create_sentiment_bert()
67
- movie_evaluation_predict("전개도 느리고 주인공인 은희는 한두컷 나오면서 소극적인모습")
 
 
 
 
 
 
 
 
64
  st.write("(긍정 확률 : %.2f) 긍정적인 영화 평가입니다." % predict_value)
65
 
66
  sentiment_model = create_sentiment_bert()
67
+
68
+ test = st.form('test')
69
+ sentence = test.text_input("Your sentence")
70
+ submit = test.form_submit_button("Submit")
71
+
72
+ if submit:
73
+ movie_evaluation_predict(sentence)
74
+