Spaces:
Sleeping
Sleeping
CRITICAL FIX: Pass features dict instead of ProcessingContext to runtime.process()
Browse files
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
|