mgbam commited on
Commit
1af6258
·
verified ·
1 Parent(s): 9b13466

CRITICAL FIX: Pass features dict instead of ProcessingContext to runtime.process()

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -628,9 +628,9 @@ for idx, row in df.iterrows():
628
  metadata={},
629
  )
630
 
631
- # Process with runtime
632
  t_start = time.perf_counter()
633
- result = runtime.process(context)
634
  t_elapsed = (time.perf_counter() - t_start) * 1000 # ms
635
 
636
  # Heavy model prediction if activated
 
628
  metadata={},
629
  )
630
 
631
+ # Process with runtime (pass features dict, not ProcessingContext)
632
  t_start = time.perf_counter()
633
+ result = runtime.process(context.features)
634
  t_elapsed = (time.perf_counter() - t_start) * 1000 # ms
635
 
636
  # Heavy model prediction if activated