HF RL Explorer

Task: Fix FastAPI "Method Not Allowed" Error

Task: Fix FastAPI "Method Not Allowed" Error: a task in Terminal-Lego-15k (Harbor dataset). You have a FastAPI application with a /predict endpoint that works correctly when tested through the FastAPI Swagger UI (which sends POST requests), but returns {"detail":"Method Not Allowed"} when accessed…

The task

You have a FastAPI application with a `/predict` endpoint that works correctly when tested through the FastAPI Swagger UI (which sends POST requests), but returns `{"detail":"Method Not Allowed"}` when accessed via a browser URL like `http://127.0.0.1:8000/predict?data=hello`.

Part of PrimeIntellect/Terminal-Lego-15k.