mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-12 21:48:35 +03:00
chore(deps): migrate to pydantic v2
This commit is contained in:
@@ -129,10 +129,11 @@ def app_factory(
|
||||
)
|
||||
|
||||
language: str | None = Field(
|
||||
default=None,
|
||||
description=(
|
||||
"Spoken language in the media file. "
|
||||
"While optional, this can improve output when set."
|
||||
)
|
||||
),
|
||||
)
|
||||
|
||||
@api_router.post(
|
||||
@@ -161,7 +162,7 @@ def app_factory(
|
||||
|
||||
# create a job with status "create" and save it to the database.
|
||||
job = models.Job(
|
||||
url=payload.url,
|
||||
url=str(payload.url),
|
||||
status=dtos.JobStatus.create,
|
||||
type=payload.type,
|
||||
config={"language": payload.language} if payload.language else None,
|
||||
|
||||
Reference in New Issue
Block a user