Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions backend/transcribee_backend/default_models.json
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,113 @@
"zh"
]
},
"nyrahealth/faster_CrisperWhisper": {
"id": "nyrahealth/faster_CrisperWhisper",
"name": "Crisp",
"languages": [
"auto",
"af",
"am",
"ar",
"as",
"az",
"ba",
"be",
"bg",
"bn",
"bo",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"es",
"et",
"eu",
"fa",
"fi",
"fo",
"fr",
"gl",
"gu",
"ha",
"haw",
"he",
"hi",
"hr",
"ht",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jw",
"ka",
"kk",
"km",
"kn",
"ko",
"la",
"lb",
"ln",
"lo",
"lt",
"lv",
"mg",
"mi",
"mk",
"ml",
"mn",
"mr",
"ms",
"mt",
"my",
"ne",
"nl",
"nn",
"no",
"oc",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"sn",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"tg",
"th",
"tk",
"tl",
"tr",
"tt",
"uk",
"ur",
"uz",
"vi",
"yi",
"yo",
"yue",
"zh"
]
},
"large": {
"id": "large",
"name": "Large",
Expand Down
2 changes: 1 addition & 1 deletion backend/transcribee_backend/routers/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def update_document(
auth: AuthInfo = Depends(get_doc_full_auth),
session: Session = Depends(get_session),
) -> ApiDocument:
update_dict = update.dict(exclude_unset=True)
update_dict = update.model_dump(exclude_unset=True)
for key, value in update_dict.items():
setattr(auth.document, key, value)
session.add(auth.document)
Expand Down
14 changes: 9 additions & 5 deletions frontend/src/pages/new_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function NewDocumentPage() {
} else {
type DocumentCreateParameters = Parameters<typeof createDocument>[0];

const modelRanking = ['tiny', 'base', 'small', 'medium', 'large-v3'];
const modelRanking = ['tiny', 'base', 'small', 'medium', 'large-v3', 'nyrahealth/faster_CrisperWhisper'];
let model = modelRanking[data.quality - 1];
if (`${model}.${data.language}` in models) {
model = `${model}.${data.language}`;
Expand Down Expand Up @@ -347,7 +347,7 @@ export function NewDocumentPage() {
</p>
</HelpPopup>
<div className="relative mb-6">
<Slider min={1} max={5} {...register('quality')} />
<Slider min={1} max={6} {...register('quality')} />
<span
className={clsx(
'text-sm text-gray-500 dark:text-gray-400 absolute start-0 -bottom-6',
Expand All @@ -371,9 +371,13 @@ export function NewDocumentPage() {
will be very underwhelming.
</p>
</>
) : (
<></>
)}
) : (quality > 5 ? (
<>
<p className="py-2 text-green-700 dark:text-green-400">
Crisp :)
</p>
</>
): (<></>))}
</FormControl>

<FormControl label="Language" error={errors.language?.message}>
Expand Down
Loading