Update app.py
Browse files
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("
|
| 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]
|