Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|