Spaces:
Running
Running
Commit
·
7d9eaeb
1
Parent(s):
98ab978
update
Browse files- app/api/transcribe.py +2 -2
app/api/transcribe.py
CHANGED
|
@@ -105,7 +105,8 @@ async def _run_sync_pipeline(tmp_wav: str, note_id: str):
|
|
| 105 |
status = "transcribed" if text.strip() else "error"
|
| 106 |
|
| 107 |
# 🔥 UPDATE — KHÔNG CREATE
|
| 108 |
-
|
|
|
|
| 109 |
note_id,
|
| 110 |
{
|
| 111 |
"status": status,
|
|
@@ -118,7 +119,6 @@ async def _run_sync_pipeline(tmp_wav: str, note_id: str):
|
|
| 118 |
"asr_model": "PhoWhisper-base",
|
| 119 |
}
|
| 120 |
},
|
| 121 |
-
# 🔥 THÊM DÒNG NÀY
|
| 122 |
"generate": ["normalize", "keywords", "summary", "mindmap"],
|
| 123 |
},
|
| 124 |
)
|
|
|
|
| 105 |
status = "transcribed" if text.strip() else "error"
|
| 106 |
|
| 107 |
# 🔥 UPDATE — KHÔNG CREATE
|
| 108 |
+
# Use internal update endpoint to match create_audio_note (internal API)
|
| 109 |
+
await note_service.update_note_internal(
|
| 110 |
note_id,
|
| 111 |
{
|
| 112 |
"status": status,
|
|
|
|
| 119 |
"asr_model": "PhoWhisper-base",
|
| 120 |
}
|
| 121 |
},
|
|
|
|
| 122 |
"generate": ["normalize", "keywords", "summary", "mindmap"],
|
| 123 |
},
|
| 124 |
)
|