hai2131 commited on
Commit
89f7c20
·
verified ·
1 Parent(s): 653acbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def classify_polarity(text, aspect):
54
  text = st.text_area("Nhập một câu tiếng Anh để phân tích:",
55
  "The food was amazing, but the service was terrible.")
56
 
57
- if st.button(" Phân tích"):
58
  with st.spinner(" Đang phân tích..."):
59
  aspects = extract_aspect_terms(text)
60
  results = [(asp, classify_polarity(text, asp)) for asp in aspects]
 
54
  text = st.text_area("Nhập một câu tiếng Anh để phân tích:",
55
  "The food was amazing, but the service was terrible.")
56
 
57
+ if st.button("Phân tích"):
58
  with st.spinner(" Đang phân tích..."):
59
  aspects = extract_aspect_terms(text)
60
  results = [(asp, classify_polarity(text, asp)) for asp in aspects]