Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import uvicorn
|
|
| 8 |
app = FastAPI(title="Crop Yield Predictor API", version="1.0")
|
| 9 |
|
| 10 |
# ✅ Load your trained model
|
| 11 |
-
model = joblib.load("
|
| 12 |
|
| 13 |
# ✅ Define the expected input schema
|
| 14 |
class CropInput(BaseModel):
|
|
|
|
| 8 |
app = FastAPI(title="Crop Yield Predictor API", version="1.0")
|
| 9 |
|
| 10 |
# ✅ Load your trained model
|
| 11 |
+
model = joblib.load("CropYieldPredictor.pkl")
|
| 12 |
|
| 13 |
# ✅ Define the expected input schema
|
| 14 |
class CropInput(BaseModel):
|