Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -183,7 +183,7 @@ def initialize_leaderboard_file():
|
|
183 |
"Total Questions", "Timestamp", "Team Name"
|
184 |
]).to_csv(LEADERBOARD_FILE, index=False)
|
185 |
|
186 |
-
def
|
187 |
"""
|
188 |
Ensure the leaderboard file exists and has the correct headers.
|
189 |
"""
|
@@ -544,7 +544,7 @@ def evaluate_predictions_pro(prediction_file, model_name,Team_name ,add_to_leade
|
|
544 |
|
545 |
except Exception as e:
|
546 |
return f"Error during evaluation: {str(e)}", load_leaderboard_pro()
|
547 |
-
|
548 |
|
549 |
|
550 |
# Function to set default mode
|
|
|
183 |
"Total Questions", "Timestamp", "Team Name"
|
184 |
]).to_csv(LEADERBOARD_FILE, index=False)
|
185 |
|
186 |
+
def initialize_leaderboard_pro_file():
|
187 |
"""
|
188 |
Ensure the leaderboard file exists and has the correct headers.
|
189 |
"""
|
|
|
544 |
|
545 |
except Exception as e:
|
546 |
return f"Error during evaluation: {str(e)}", load_leaderboard_pro()
|
547 |
+
initialize_leaderboard_pro_file()
|
548 |
|
549 |
|
550 |
# Function to set default mode
|