Spaces:
Sleeping
Sleeping
Commit History
-
feat: SRP refactor, streaming UX fix, and semantic disease detection (#12)
KevinIsInCoding +3: Claude Sonnet 4.6, claude[bot], KevinIsInCodingUnverified signature* feat: SRP refactor, streaming UX fix, and semantic disease detection - Split 652-line clinical_trials_guru.py monolith into focused modules: config, models, tools, prompts, trials_api, _console, agents/intake, agents/research. clinical_trials_guru.py now ~60 lines of re-exports. - Move tool schemas and disease benchmark profiles to JSON files under data/; adding a new disease requires only a new JSON file, no code change. - Fix Gradio 6.x input-locking bug by switching all intake/research turns to Anthropic streaming API — inputs unblock after milliseconds, not 30s. - Replace brittle substring match_disease() with identify_disease tool: the intake agent calls identify_disease(standardized_name=...) when it semantically identifies the disease; system does reliable registry lookup via lookup_disease_profile(). Handles all languages, synonyms, and symptom descriptions that keyword matching could not. - Pin Gradio to >=6.14.0,<7.0.0 to prevent unexpected major-version br…22195c1