Srastog commited on
Commit
35d6da2
·
verified ·
1 Parent(s): 258c7e8

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +1 -1
app/main.py CHANGED
@@ -36,7 +36,7 @@ def upload_csv(file:UploadFile=File(...)):
36
  dataset=pd.read_csv(file.file)
37
  file.file.close()
38
  return {"filename": file.filename}
39
- else:
40
  return {"message":"Pleae upload a CSV file"}
41
 
42
  @app.post("/train/")
 
36
  dataset=pd.read_csv(file.file)
37
  file.file.close()
38
  return {"filename": file.filename}
39
+ except:
40
  return {"message":"Pleae upload a CSV file"}
41
 
42
  @app.post("/train/")