Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,7 @@ if st.session_state['upload_count'] < max_attempts:
|
|
98 |
fig = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
|
99 |
values='score', color='label')
|
100 |
fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
|
101 |
-
st.plotly_chart(fig)
|
102 |
vectorizer = TfidfVectorizer()
|
103 |
tfidf_matrix = vectorizer.fit_transform(result)
|
104 |
tfidf_df = pd.DataFrame(tfidf_matrix.toarray(), columns=vectorizer.get_feature_names_out())
|
|
|
98 |
fig = px.treemap(entities, path=[px.Constant("all"), 'text', 'label'],
|
99 |
values='score', color='label')
|
100 |
fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
|
101 |
+
st.plotly_chart(fig, key = "fig")
|
102 |
vectorizer = TfidfVectorizer()
|
103 |
tfidf_matrix = vectorizer.fit_transform(result)
|
104 |
tfidf_df = pd.DataFrame(tfidf_matrix.toarray(), columns=vectorizer.get_feature_names_out())
|