Rodiyah commited on
Commit
dec6770
·
verified ·
1 Parent(s): 703f6d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -41,11 +41,12 @@ def log_prediction(filename, prediction, confidence):
41
  timestamp = datetime.datetime.now().isoformat()
42
  row = [timestamp, filename, prediction, f"{confidence:.4f}"]
43
 
 
 
44
  with open(log_path, mode='a', newline='') as file:
45
  writer = csv.writer(file)
46
  writer.writerow(row)
47
 
48
-
49
  # Prediction function
50
  def predict_retinopathy(image):
51
  img = image.convert("RGB").resize((224, 224))
 
41
  timestamp = datetime.datetime.now().isoformat()
42
  row = [timestamp, filename, prediction, f"{confidence:.4f}"]
43
 
44
+ print("⏺ Logging prediction:", row) # 🔍 Add this line
45
+
46
  with open(log_path, mode='a', newline='') as file:
47
  writer = csv.writer(file)
48
  writer.writerow(row)
49
 
 
50
  # Prediction function
51
  def predict_retinopathy(image):
52
  img = image.convert("RGB").resize((224, 224))