Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ form = st.sidebar.form("Main Settings")
|
|
49 |
form.header("Main Settings")
|
50 |
|
51 |
ebay_topic = form.selectbox("eBay Products Topic Selection", ["Motor", "Bicycle", "Beauty", "Basketball", "Fitness"])
|
52 |
-
num = form.number_input("
|
53 |
|
54 |
form.form_submit_button("Run")
|
55 |
|
@@ -89,6 +89,7 @@ if similar_topics != []:
|
|
89 |
st.info("Extracted Topic")
|
90 |
#st.text_area("Most Similar Topic List is Here",answer_as_string,key="topic_list")
|
91 |
keywords = pd.DataFrame(answer_as_string)
|
|
|
92 |
st.table(keywords)
|
93 |
st.image('https://freepngimg.com/download/keyboard/6-2-keyboard-png-file.png',use_column_width=True)
|
94 |
#st.markdown("<h6 style='text-align: center; color: #808080;'>Created By LiHE</a></h6>", unsafe_allow_html=True)
|
|
|
49 |
form.header("Main Settings")
|
50 |
|
51 |
ebay_topic = form.selectbox("eBay Products Topic Selection", ["Motor", "Bicycle", "Beauty", "Basketball", "Fitness"])
|
52 |
+
num = form.number_input("The Number of Topics", value = 10)
|
53 |
|
54 |
form.form_submit_button("Run")
|
55 |
|
|
|
89 |
st.info("Extracted Topic")
|
90 |
#st.text_area("Most Similar Topic List is Here",answer_as_string,key="topic_list")
|
91 |
keywords = pd.DataFrame(answer_as_string)
|
92 |
+
keywords.columns = ["Social Media Topics", "Similarity Score"]
|
93 |
st.table(keywords)
|
94 |
st.image('https://freepngimg.com/download/keyboard/6-2-keyboard-png-file.png',use_column_width=True)
|
95 |
#st.markdown("<h6 style='text-align: center; color: #808080;'>Created By LiHE</a></h6>", unsafe_allow_html=True)
|