Update app/main.py
Browse files- app/main.py +0 -13
app/main.py
CHANGED
@@ -26,19 +26,6 @@ app=FastAPI()
|
|
26 |
def home():
|
27 |
return {"message":"Hello World!"}
|
28 |
|
29 |
-
"""
|
30 |
-
@app.post("/upload/")
|
31 |
-
def upload_csv(uploaded_file:UploadFile=File(...)):
|
32 |
-
cwd=os.getcwd()
|
33 |
-
path=os.path.join(cwd,"app","dataset.csv")
|
34 |
-
with open(path, 'w+b') as file:
|
35 |
-
shutil.copyfileobj(uploaded_file.file, file)
|
36 |
-
|
37 |
-
return {'file': uploaded_file.filename,
|
38 |
-
'content': uploaded_file.content_type,
|
39 |
-
'path': path}
|
40 |
-
"""
|
41 |
-
|
42 |
@app.post("/upload/")
|
43 |
def upload_csv(file:UploadFile=File(...)):
|
44 |
global dataset
|
|
|
26 |
def home():
|
27 |
return {"message":"Hello World!"}
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
@app.post("/upload/")
|
30 |
def upload_csv(file:UploadFile=File(...)):
|
31 |
global dataset
|