faster uploads?
Browse files
App/Transcription/TranscriptionRoutes.py
CHANGED
|
@@ -22,9 +22,6 @@ async def create_file(
|
|
| 22 |
description="Whisper model Sizes",
|
| 23 |
),
|
| 24 |
):
|
| 25 |
-
# Read the file contents
|
| 26 |
-
contents = await file.read()
|
| 27 |
-
|
| 28 |
# Write the file to disk asynchronously
|
| 29 |
try:
|
| 30 |
async with aiofiles.open(file.filename, "wb") as f:
|
|
|
|
| 22 |
description="Whisper model Sizes",
|
| 23 |
),
|
| 24 |
):
|
|
|
|
|
|
|
|
|
|
| 25 |
# Write the file to disk asynchronously
|
| 26 |
try:
|
| 27 |
async with aiofiles.open(file.filename, "wb") as f:
|