Spaces:
Sleeping
Sleeping
Update app.file
Browse files
app.file
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
from logic import get_links,get_documents,get_topics,get_figure
|
| 4 |
+
|
| 5 |
+
st.write("Getting Links")
|
| 6 |
+
links = get_links()
|
| 7 |
+
|
| 8 |
+
st.write("Getting Documents")
|
| 9 |
+
docs = get_documents(links)
|
| 10 |
+
|
| 11 |
+
st.write("Getting Topics with topic_model")
|
| 12 |
+
topic_model = get_topics(docs)
|
| 13 |
+
|
| 14 |
+
st.write("Creating Visual")
|
| 15 |
+
fig = get_figure(topic_model)
|
| 16 |
+
st.image(fig)
|