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

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -33,7 +33,8 @@ async def home():
33
  return "API Working!"
34
 
35
  @app.post("/file/upload")
36
- async def upload_file(username: str, file_to_process: FileToProcess = Depends()):
 
37
  uploaded_file = file_to_process.uploaded_file
38
  print("File received:"+uploaded_file.filename)
39
  print("File received:", uploaded_file.filename)
 
33
  return "API Working!"
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)