prashantmatlani commited on
Commit
c69c67b
·
1 Parent(s): 8f59669

modified inference with proper prints

Browse files
Files changed (1) hide show
  1. inference.py +5 -5
inference.py CHANGED
@@ -175,12 +175,12 @@ def run_single_task(task):
175
  # =========================
176
  # CRITICAL: JSON OUTPUT (GRADER SIGNAL)
177
  # =========================
178
- print(f"\n")
179
  print(json.dumps({
180
- "task_id": task_name,
181
- "score": round(score, 4)
182
- }))
183
- print(f"\n")
184
 
185
  # =========================
186
  # MAIN
 
175
  # =========================
176
  # CRITICAL: JSON OUTPUT (GRADER SIGNAL)
177
  # =========================
178
+ #print(f"\n")
179
  print(json.dumps({
180
+ "task_id": task_name,
181
+ "score": float(round(score, 4))
182
+ }), flush=True)
183
+ #print(f"\n")
184
 
185
  # =========================
186
  # MAIN