Spaces:
Runtime error
Runtime error
Testing Checklist
Use this checklist before pushing or presenting the demo.
Backend
-
GET /healthreturnsstatus: ok. -
GET /healthshows the expected model directory and threshold0.16. -
POST /analyzeworks for a valid synthetic DNA sequence. -
POST /analyzereturns prediction probabilities andprediction_class. - Invalid DNA sequence returns a clear HTTP
400error. - Response includes
explanation. - Response includes
explanation_source. - Response includes
confidence_level,recommendation,limitations, anddisclaimer. - OpenAI explanation works when
USE_AI_EXPLANATION=trueandOPENAI_API_KEYis set. - OpenAI fallback works if the key is missing or the OpenAI request fails.
Frontend
- Frontend loads at
http://localhost:3000. - Backend status indicator shows connected/model loaded.
- Form accepts variant name, gene, sequence, and notes.
- Result card displays prediction label and risk level.
- Result card displays pathogenic and benign probabilities.
- Result card displays explanation and explanation source.
- Result card displays limitations and research/demo disclaimer.
- History panel records recent demo analyses.
Security And Artifacts
- No
.envfiles are tracked by Git. - No
.env.localfiles are tracked by Git. - No OpenAI API key appears in tracked source, README, or docs files.
- Trained model folders are ignored by Git.
- Dataset folders are ignored by Git.
- Model weight files such as
.safetensors,.bin,.pt, and.ckptare ignored by Git.