Spaces:
Runtime error
Runtime error
Update app/main.py
Browse files- 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 |
-
|
| 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/")
|