Hasitha16 commited on
Commit
13606c8
Β·
verified Β·
1 Parent(s): 7b67b3d

Update frontend.py

Browse files
Files changed (1) hide show
  1. 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
- sample_df = pd.DataFrame({
140
- "review": ["This app helps me manage my medical appointments smoothly.", "The mobile battery drains fast when using the banking app.", "Streaming service loads slowly on Smart TV."],
141
- "industry": ["Healthcare", "Banking", "Entertainment"],
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