aibota01 commited on
Commit
279530a
·
1 Parent(s): 991316e
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -34,6 +34,16 @@ def evaluate_submission(file):
34
  Evaluate the submitted CSV file by comparing predicted bounding box coordinates and food weight
35
  against the ground truth.
36
  """
 
 
 
 
 
 
 
 
 
 
37
  # Load hidden ground truth CSV.
38
  try:
39
  gt_df = pd.read_csv("/Users/aibota/Downloads/ground_truth.csv")
 
34
  Evaluate the submitted CSV file by comparing predicted bounding box coordinates and food weight
35
  against the ground truth.
36
  """
37
+ if file is None:
38
+ return "❌ Please upload a file."
39
+
40
+ print("File received:", file)
41
+ try:
42
+ submission_df = pd.read_csv(file.name)
43
+ print("Submission shape:", submission_df.shape)
44
+ except Exception as e:
45
+ return f"❌ File read failed: {e}"
46
+
47
  # Load hidden ground truth CSV.
48
  try:
49
  gt_df = pd.read_csv("/Users/aibota/Downloads/ground_truth.csv")