naufalnashif commited on
Commit
030ebd1
1 Parent(s): fcf226f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -329,12 +329,12 @@ with st.sidebar :
329
  else:
330
  # Input berkas XLSX
331
  uploaded_file = st.file_uploader("Unggah berkas XLSX", type=["xlsx"])
332
- st.caption("Pastikan berkas XLSX Anda memiliki kolom yang bernama :blue[Text] _(Maks.500 data)_.")
333
  st.caption("Jika terdapat kolom type :blue[datetime], ganti nama kolom menjadi :blue[Date]")
334
 
335
  if uploaded_file is not None:
336
  df = pd.read_excel(uploaded_file)
337
- df = df[:500]
338
  if 'Text' not in df.columns:
339
  st.warning("Berkas XLSX harus memiliki kolom bernama 'Text' untuk analisis sentimen.")
340
  if not df['Text'].empty:
 
329
  else:
330
  # Input berkas XLSX
331
  uploaded_file = st.file_uploader("Unggah berkas XLSX", type=["xlsx"])
332
+ st.caption("Pastikan berkas XLSX Anda memiliki kolom yang bernama :blue[Text] _(Maks.10000 data)_.")
333
  st.caption("Jika terdapat kolom type :blue[datetime], ganti nama kolom menjadi :blue[Date]")
334
 
335
  if uploaded_file is not None:
336
  df = pd.read_excel(uploaded_file)
337
+ df = df[:10000]
338
  if 'Text' not in df.columns:
339
  st.warning("Berkas XLSX harus memiliki kolom bernama 'Text' untuk analisis sentimen.")
340
  if not df['Text'].empty: