Spaces:
Runtime error
Runtime error
Commit History
-
Add complete UI with sample images and MCP server
Unverified signature- Add SAMPLE_IMAGES config with 3 NPH CT scans - Add load_sample_image() and get_sample_image_path() functions - Add ModelConfig dataclass for model metadata - Add all 6 models: MedSAM2, MCP-MedSAM, SAM-Med3D, MedSAM-3D, TractSeg, nnU-Net - Add 'Try with Sample CT' tab for quick testing - Add 'Single Model' tab with sample/upload toggle - Add 'Model Comparison' tab with category grouping and prompt-only filter - Add run_medsam_3d(), run_tractseg(), run_nnunet() functions - Enable mcp_server=True in demo.launch() - Add colors for each model in comparison view - Add Model Status table in Status tabaf2b1cc -
Refactor for HydroMorph mobile app compatibility
Unverified signature- Add process_with_status endpoint for GradioClient.js compatibility - Add api_segment_2d/3d for direct JSON API calls - Add api_compare_models for multi-model comparison - Add overlay_mask_on_image for result visualization - Add compress_mask/decompress_mask utilities - Add image_to_base64/base64_to_image utilities - Implement run_medsam2_3d, run_mcp_medsam_2d, run_sam_med3d - Update Gradio UI with mobile app, 2D, 3D, comparison tabs - Ensure API returns [image, status] format expected by mobile app - Add proper error handling and logging for mobile debuggingf87c868 -
Update samples to download from URLs instead of local storage
Unverified signature- Change SAMPLE_IMAGES to use URLs instead of local paths - Update load_sample_image() to download and cache samples on-demand - Add load_sample_for_display() helper for browser tab - Update health check to use new sample structure - Samples downloaded from Hugging Face datasets on first use6a93c79 -
Major UI overhaul: Model comparison, sample data, harmonized interface
- Add Model Comparison tab with side-by-side model evaluation - Add Sample Data browser with 3 NPH CT scan samples - Add Single Model tab with dynamic model-specific inputs - Add Settings tab with model configuration and health check - Implement ModelCapability dataclass for fine-grained model features - Add sample data configuration with default boxes for each sample - Add toggle for prompt-based models only in comparisons - Implement run_comparison function for parallel model execution - Harmonize UI with consistent styling and layout - Add MCP server endpoint support - Improve model categorization (foundation/specialized/experimental)f4975b4