Intel update
This commit is contained in:
@@ -101,17 +101,21 @@ async def _run_intelligence_pipeline(
|
||||
from app.internal import transcription, intelligence, incident_correlator, alerter
|
||||
|
||||
transcript: Optional[str] = None
|
||||
segments: list[dict] = []
|
||||
|
||||
# Step 1: Transcription
|
||||
if gcs_uri:
|
||||
transcript = await transcription.transcribe_call(call_id, gcs_uri, talkgroup_name)
|
||||
transcript, segments = await transcription.transcribe_call(call_id, gcs_uri, talkgroup_name)
|
||||
|
||||
# Step 2: Intelligence extraction
|
||||
tags: list[str] = []
|
||||
incident_type: Optional[str] = None
|
||||
location: Optional[str] = None
|
||||
if transcript:
|
||||
tags, incident_type, location = await intelligence.extract_tags(call_id, transcript, talkgroup_name)
|
||||
tags, incident_type, location = await intelligence.extract_tags(
|
||||
call_id, transcript, talkgroup_name,
|
||||
talkgroup_id=talkgroup_id, system_id=system_id, segments=segments,
|
||||
)
|
||||
|
||||
# Step 3: Incident correlation
|
||||
if incident_type:
|
||||
|
||||
Reference in New Issue
Block a user