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