Spaces:
Sleeping
Sleeping
Update app.py
Browse files63 unmodified lines6465666768697063 unmodified lines)# 5. Inject our custom /api/predict route@app.post("/api/predict")async def predict(file: UploadFile = File(...)):if not model:return JSONResponse(status_code=500, content={"error": "Model not loaded on server"})63 unmodified lines646566676869707163 unmodified lines)# 5. Inject our custom /api/predict route# Updated Route:@app.post("/api/diagnose")async def predict(file: UploadFile = File(...)):if not model:return JSONResponse(status_code=500, content={"error": "Model not loaded on server"})
app.py+2-1