iShare commited on
Commit
f779aaf
1 Parent(s): 7e3780d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -34,7 +34,7 @@ async def home():
34
 
35
  @app.post("/file/upload")
36
  #async def upload_file(username: str, file_to_process: FileToProcess = Depends()):
37
- async def upload_file(username: str, file_to_process: FileToProcess = Depends(), request: Request):
38
  uploaded_file = file_to_process.uploaded_file
39
  print("File received:"+uploaded_file.filename)
40
  print("File received:", uploaded_file.filename)
 
34
 
35
  @app.post("/file/upload")
36
  #async def upload_file(username: str, file_to_process: FileToProcess = Depends()):
37
+ async def upload_file(username: str, request: Request, file_to_process: FileToProcess = Depends()):
38
  uploaded_file = file_to_process.uploaded_file
39
  print("File received:"+uploaded_file.filename)
40
  print("File received:", uploaded_file.filename)