Spaces:
Running
Running
Update frontend.py
Browse files- frontend.py +3 -9
frontend.py
CHANGED
@@ -136,15 +136,9 @@ with tab2:
|
|
136 |
<code>industry</code>, <code>product_category</code>, <code>device</code> <span style='color:#aaa;'>(optional)</span></div>
|
137 |
""", unsafe_allow_html=True)
|
138 |
|
139 |
-
|
140 |
-
|
141 |
-
"
|
142 |
-
"product_category": ["Healthcare Devices", "Banking App", "Streaming App"],
|
143 |
-
"device": ["Android", "iOS", "Smartwatch"]
|
144 |
-
})
|
145 |
-
sample_csv = sample_df.to_csv(index=False).encode("utf-8")
|
146 |
-
with st.expander("π Sample CSV"):
|
147 |
-
st.download_button("β¬οΈ Download sample CSV", sample_csv, "sample_reviews.csv", mime="text/csv")
|
148 |
|
149 |
uploaded_file = st.file_uploader("π Upload your CSV", type="csv")
|
150 |
|
|
|
136 |
<code>industry</code>, <code>product_category</code>, <code>device</code> <span style='color:#aaa;'>(optional)</span></div>
|
137 |
""", unsafe_allow_html=True)
|
138 |
|
139 |
+
with st.expander("π Sample CSV"):
|
140 |
+
with open("sample_reviews.csv", "rb") as f:
|
141 |
+
st.download_button("β¬οΈ Download sample CSV", f, file_name="sample_reviews.csv")
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
|
143 |
uploaded_file = st.file_uploader("π Upload your CSV", type="csv")
|
144 |
|