sepidnes commited on
Commit
3f52b2e
·
verified ·
1 Parent(s): 15a4149

Update backend/main.py

Browse files
Files changed (1) hide show
  1. 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(contents)} bytes")
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