Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,8 +32,8 @@ if xl1 is not None :
|
|
32 |
with st.form("First excel file"):
|
33 |
choices = []
|
34 |
i = 0
|
35 |
-
if new_df.shape[0] > num_kp:
|
36 |
-
num_kp = new_df.shape[0]
|
37 |
for t1 in new_df.sample(n=num_kp,random_state=42).iterrows():
|
38 |
#for t1 in new_df.sample(n=10, random_state=42).iterrows():
|
39 |
r1 = t1[1]
|
|
|
32 |
with st.form("First excel file"):
|
33 |
choices = []
|
34 |
i = 0
|
35 |
+
if new_df.shape[0]-1 > num_kp:
|
36 |
+
num_kp = new_df.shape[0] - 1
|
37 |
for t1 in new_df.sample(n=num_kp,random_state=42).iterrows():
|
38 |
#for t1 in new_df.sample(n=10, random_state=42).iterrows():
|
39 |
r1 = t1[1]
|