Spaces:
Sleeping
Sleeping
Davide Fiocco
commited on
Commit
·
f6d9cae
1
Parent(s):
eced8d8
Apply cutoff to filtered table
Browse files
app.py
CHANGED
@@ -49,8 +49,8 @@ if st.button("Calculate labels"):
|
|
49 |
|
50 |
try:
|
51 |
labels_list = labels.split(",")
|
52 |
-
table = pd.read_excel(data)
|
53 |
-
table = table.loc[table["text"].apply(len) > 10].reset_index(drop=True)
|
54 |
|
55 |
prog_bar = st.progress(0)
|
56 |
preds = []
|
|
|
49 |
|
50 |
try:
|
51 |
labels_list = labels.split(",")
|
52 |
+
table = pd.read_excel(data)
|
53 |
+
table = table.loc[table["text"].apply(len) > 10].head(N).reset_index(drop=True)
|
54 |
|
55 |
prog_bar = st.progress(0)
|
56 |
preds = []
|