Skip to content

Commit

Permalink
Merge branch 'luisotee/audio-transcription' of https://github.com/dig…
Browse files Browse the repository at this point in the history
…idem/earth-defenders-assistant into luisotee/audio-transcription
  • Loading branch information
Luisotee committed Nov 28, 2024
2 parents b90ce01 + d875b3a commit 7f1ef02
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/ai_api/eda_ai_api/api/routes/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ def process_decision(decision: str, message: str) -> Dict[str, Any]:

@router.post("/classifier", response_model=ClassifierResponse)
async def classifier_route(
message: Optional[str] = Form(None), audio: Optional[UploadFile] = File(None)
message: Optional[str] = Form(default=None),
audio: Optional[UploadFile] = File(default=None),
) -> ClassifierResponse:
"""Main route handler for classifier API"""
try:
Expand Down
4 changes: 3 additions & 1 deletion apps/ai_api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ dependencies = [
"langchain-groq>=0.2.1",
"opportunity-finder",
"proposal_writer",
"onboarding"
"onboarding",
"ffmpeg>=1.4",
"python-multipart>=0.0.17",
]

[project.optional-dependencies]
Expand Down
19 changes: 19 additions & 0 deletions apps/ai_api/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7f1ef02

Please sign in to comment.