Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -150,9 +150,7 @@ def analyze_text(text):
|
|
150 |
st.title("Text Analysis and Summary")
|
151 |
text = st.text_area("Enter text here:")
|
152 |
|
153 |
-
|
154 |
-
|
155 |
-
if col1.button("Analyze"):
|
156 |
if text:
|
157 |
nb_mots, polarite, subjectivite, mots_cles, resume1, resume2 = analyze_text(text)
|
158 |
|
@@ -163,7 +161,7 @@ if col1.button("Analyze"):
|
|
163 |
st.write(f'Résumé 1 : {resume1}')
|
164 |
st.write(f'Résumé 2 : {resume2}')
|
165 |
|
166 |
-
if
|
167 |
text = ""
|
168 |
|
169 |
st.text_area("Enter text here:", value=text)
|
|
|
150 |
st.title("Text Analysis and Summary")
|
151 |
text = st.text_area("Enter text here:")
|
152 |
|
153 |
+
if st.button("Analyze"):
|
|
|
|
|
154 |
if text:
|
155 |
nb_mots, polarite, subjectivite, mots_cles, resume1, resume2 = analyze_text(text)
|
156 |
|
|
|
161 |
st.write(f'Résumé 1 : {resume1}')
|
162 |
st.write(f'Résumé 2 : {resume2}')
|
163 |
|
164 |
+
if st.button("Clear Text Area"):
|
165 |
text = ""
|
166 |
|
167 |
st.text_area("Enter text here:", value=text)
|