com3dian commited on
Commit
781e264
·
verified ·
1 Parent(s): 436cb97

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -3
src/streamlit_app.py CHANGED
@@ -27,11 +27,9 @@ if uploaded_file:
27
  # Save to leaderboard
28
  if os.path.exists(LEADERBOARD_FILE):
29
  df = pd.read_csv(LEADERBOARD_FILE)
30
- df = df.append(entry, ignore_index=True)
31
  else:
32
  df = pd.DataFrame([entry])
33
- df.to_csv(LEADERBOARD_FILE, index=False)
34
- st.success(f"Submission scored {score}!")
35
  except Exception as e:
36
  st.error(f"Error: {e}")
37
 
 
27
  # Save to leaderboard
28
  if os.path.exists(LEADERBOARD_FILE):
29
  df = pd.read_csv(LEADERBOARD_FILE)
30
+ df = pd.concat([df, pd.DataFrame([entry])], ignore_index=True)
31
  else:
32
  df = pd.DataFrame([entry])
 
 
33
  except Exception as e:
34
  st.error(f"Error: {e}")
35