Spaces:
Runtime error
Runtime error
Update codriao_tb_module.py
Browse files- codriao_tb_module.py +4 -2
codriao_tb_module.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
import asyncio
|
| 2 |
import logging
|
| 3 |
-
from
|
|
|
|
|
|
|
| 4 |
from tb_image_processor import TBImageProcessor
|
| 5 |
from tb_audio_processor import TBAudioProcessor
|
| 6 |
|
|
@@ -9,7 +11,7 @@ logger = logging.getLogger(__name__)
|
|
| 9 |
class CodriaoHealthModule:
|
| 10 |
"""Embedded compassionate TB detection within Codriao's architecture"""
|
| 11 |
|
| 12 |
-
def __init__(self, ai_core:
|
| 13 |
self.ai_core = ai_core
|
| 14 |
self.image_processor = TBImageProcessor()
|
| 15 |
self.audio_processor = TBAudioProcessor()
|
|
|
|
| 1 |
import asyncio
|
| 2 |
import logging
|
| 3 |
+
from typing import TYPE_CHECKING
|
| 4 |
+
if TYPE_CHECKING:
|
| 5 |
+
from CodriaoCore import CodriaoCore
|
| 6 |
from tb_image_processor import TBImageProcessor
|
| 7 |
from tb_audio_processor import TBAudioProcessor
|
| 8 |
|
|
|
|
| 11 |
class CodriaoHealthModule:
|
| 12 |
"""Embedded compassionate TB detection within Codriao's architecture"""
|
| 13 |
|
| 14 |
+
def __init__(self, ai_core: "CodriaoCore"):
|
| 15 |
self.ai_core = ai_core
|
| 16 |
self.image_processor = TBImageProcessor()
|
| 17 |
self.audio_processor = TBAudioProcessor()
|