Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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()
|
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)
|