Spaces:
Running
Running
Update src/ai_processor.py
Browse files- src/ai_processor.py +9 -18
src/ai_processor.py
CHANGED
|
@@ -546,21 +546,12 @@ class AIProcessor:
|
|
| 546 |
logging.error(f"Pipeline error: {e}", exc_info=True)
|
| 547 |
return f"❌ Error: {e}"
|
| 548 |
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
def
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
# Convenience function for external use
|
| 560 |
-
@_SPACES_GPU(enable_queue=True, duration=180)
|
| 561 |
-
def analyze_wound(image: Image.Image, questionnaire_data: Dict[str, Any]) -> str:
|
| 562 |
-
"""
|
| 563 |
-
Main entry point for wound analysis
|
| 564 |
-
"""
|
| 565 |
-
proc = get_processor()
|
| 566 |
-
return proc.full_analysis_pipeline(image, questionnaire_data)
|
|
|
|
| 546 |
logging.error(f"Pipeline error: {e}", exc_info=True)
|
| 547 |
return f"❌ Error: {e}"
|
| 548 |
|
| 549 |
+
|
| 550 |
+
# Convenience function for external use
|
| 551 |
+
@_SPACES_GPU(enable_queue=True, duration=180)
|
| 552 |
+
def analyze_wound(image: Image.Image, questionnaire_data: Dict[str, Any]) -> str:
|
| 553 |
+
"""
|
| 554 |
+
Main entry point for wound analysis
|
| 555 |
+
"""
|
| 556 |
+
proc = get_processor()
|
| 557 |
+
return proc.full_analysis_pipeline(image, questionnaire_data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|