Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -5,6 +5,8 @@ from fastapi import Form
|
|
5 |
|
6 |
from fastapi.responses import JSONResponse
|
7 |
|
|
|
|
|
8 |
@app.post("/file/upload")
|
9 |
async def upload_file(username: str, uploaded_file: UploadFile = File(...)):
|
10 |
path_to_save_file = Path.home() / username / "saved_files"
|
|
|
5 |
|
6 |
from fastapi.responses import JSONResponse
|
7 |
|
8 |
+
app = FastAPI()
|
9 |
+
|
10 |
@app.post("/file/upload")
|
11 |
async def upload_file(username: str, uploaded_file: UploadFile = File(...)):
|
12 |
path_to_save_file = Path.home() / username / "saved_files"
|