Spaces:
Sleeping
Sleeping
Update backend/main.py
Browse files- backend/main.py +1 -1
backend/main.py
CHANGED
|
@@ -99,7 +99,7 @@ async def upload_file(file: UploadFile = File(...)):
|
|
| 99 |
with tempfile.NamedTemporaryFile(delete=False, suffix=suffix) as temp_file:
|
| 100 |
# Copy the uploaded file content to the temporary file
|
| 101 |
content = await file.read()
|
| 102 |
-
print(f"File read complete. Size: {len(
|
| 103 |
with open(temp_file.name, "wb") as f:
|
| 104 |
f.write(content)
|
| 105 |
|
|
|
|
| 99 |
with tempfile.NamedTemporaryFile(delete=False, suffix=suffix) as temp_file:
|
| 100 |
# Copy the uploaded file content to the temporary file
|
| 101 |
content = await file.read()
|
| 102 |
+
print(f"File read complete. Size: {len(content)} bytes")
|
| 103 |
with open(temp_file.name, "wb") as f:
|
| 104 |
f.write(content)
|
| 105 |
|