Skip to content

Commit

Permalink
Fixed mac german
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoroney committed Dec 13, 2024
1 parent f7efe50 commit 8c7e7f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Transcription-Server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ async def transcribe(request: TranscriptionRequest):
task = "transcribe"
elif request.language == "de" and request.model == "large" and platform.system() != 'Windows':
request.model = request.model + ".de"
task = request.task
else:
task = request.task

Expand All @@ -491,10 +492,10 @@ async def transcribe(request: TranscriptionRequest):
)
result["mark_in"] = request.mark_in
except Exception as e:
print(f"Error during audio processing: {e}")
print(f"Error during transcription: {e}")
raise HTTPException(
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
detail=f"Error during audio processing: {e}"
detail=f"Error during transcription: {e}"
)

# Save the transcription to a JSON file
Expand Down

0 comments on commit 8c7e7f6

Please sign in to comment.