jonathanjordan21 commited on
Commit
991636c
·
verified ·
1 Parent(s): 7a6defc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ UPLOAD_DIR = Path("uploads")
28
  UPLOAD_DIR.mkdir(exist_ok=True)
29
 
30
  @app.post("/upload")
31
- async def upload_file(file: UploadFile = File(...), type: str = Form(...), task: BackgroundTasks):
32
  # print(file)
33
  # file_path = Path(file.filename)
34
  # with file_path.open("wb") as buffer:
 
28
  UPLOAD_DIR.mkdir(exist_ok=True)
29
 
30
  @app.post("/upload")
31
+ async def upload_file(file: UploadFile = File(...), type: str = Form(...), task: BackgroundTasks = None):
32
  # print(file)
33
  # file_path = Path(file.filename)
34
  # with file_path.open("wb") as buffer: