iShare commited on
Commit
b474372
1 Parent(s): 6458a1a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
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"