Spaces:
Runtime error
Runtime error
Commit
·
f98a663
1
Parent(s):
aa700c5
changes
Browse files
app.py
CHANGED
@@ -38,9 +38,9 @@ try:
|
|
38 |
topic_classifier = st.session_state.topic_model
|
39 |
predicted_topic = suggest_topic(topic_classifier,whole_text)
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
except Exception as e:
|
45 |
print("Error", e)
|
46 |
|
|
|
38 |
topic_classifier = st.session_state.topic_model
|
39 |
predicted_topic = suggest_topic(topic_classifier,whole_text)
|
40 |
|
41 |
+
st.subheader('Top 10 Topics related to the content')
|
42 |
+
for i in predicted_topic[:10]:
|
43 |
+
st.write(i)
|
44 |
except Exception as e:
|
45 |
print("Error", e)
|
46 |
|