The script environment/workspace/workflow.py implements the following workflow:
bin_values(values) reads POLARS_BIN_EDGES as comma-separated floats (sorted ascending), assigns each value to a 0-based bin index using the rule bin = (number of edges strictly less than or equal to value) - 1 (so the first bin is [edges[0], edges[1]), etc.), with -1 for values below the first edge and len(edges)-1 for values above the last edge. Returns {indices: [...]}.
Your task
Port environment/workspace/workflow.py to Modal. Write your solution to /app/solution/modal_app.py.
Your solution must define a module-level app and a module-level entrypoint named run_case. The verifier will invoke run_case for each case and compare its output to the original workflow's output.
Capability contract
Expose the workflow as a single Modal remote function: define run_case as an @app.function so the harness can invoke it with run_case.remote(case).