Jay-Rajput commited on
Commit
9a14b44
·
1 Parent(s): 1309f03

writing to predictions.csv

Browse files
Files changed (2) hide show
  1. app.py +7 -7
  2. predictions.csv +4 -0
app.py CHANGED
@@ -91,6 +91,13 @@ def is_submission_allowed(match_id):
91
  return False # If match_id not found, default to False
92
 
93
 
 
 
 
 
 
 
 
94
  # Submit prediction function
95
  def submit_prediction(
96
  user_name,
@@ -225,13 +232,6 @@ def display_leaderboard():
225
  st.write("Leaderboard data not available.")
226
 
227
 
228
- def load_predictions(PREDICTIONS_CSV):
229
- try:
230
- return pd.read_csv(PREDICTIONS_CSV)
231
- except FileNotFoundError:
232
- return pd.DataFrame()
233
-
234
-
235
  # Show Predictions functionality
236
  def show_todays_match_predictions():
237
  # Get today's matches
 
91
  return False # If match_id not found, default to False
92
 
93
 
94
+ def load_predictions(PREDICTIONS_CSV):
95
+ try:
96
+ return pd.read_csv(PREDICTIONS_CSV)
97
+ except FileNotFoundError:
98
+ return pd.DataFrame()
99
+
100
+
101
  # Submit prediction function
102
  def submit_prediction(
103
  user_name,
 
232
  st.write("Leaderboard data not available.")
233
 
234
 
 
 
 
 
 
 
 
235
  # Show Predictions functionality
236
  def show_todays_match_predictions():
237
  # Get today's matches
predictions.csv CHANGED
@@ -27,3 +27,7 @@ Haaris,20240323_3,SRH,Travis Head,300
27
  Vaibhav,20240323_3,KKR,Mitchell Starc,300
28
  Neha,20240323_3,KKR,Rinku Singh,300
29
  Vinay,20240323_3,SRH,Pat Cummins,100
 
 
 
 
 
27
  Vaibhav,20240323_3,KKR,Mitchell Starc,300
28
  Neha,20240323_3,KKR,Rinku Singh,300
29
  Vinay,20240323_3,SRH,Pat Cummins,100
30
+ Sunil,20240325_6,RCB,Glenn Maxwell,900
31
+ Sahil,20240325_6,RCB,Virat Kohli,350
32
+ Vinay,20240325_6,RCB,Faf du Plessis,200
33
+ Megha,20240325_6,RCB,Virat Kohli,500