Spaces:
Runtime error
Runtime error
Update app/main.py
Browse files- app/main.py +5 -5
app/main.py
CHANGED
|
@@ -35,11 +35,11 @@ def upload_csv(file:UploadFile=File(...)):
|
|
| 35 |
|
| 36 |
@app.post("/train/")
|
| 37 |
def training():
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
else:
|
| 42 |
-
|
| 43 |
|
| 44 |
@app.post("/predict/")
|
| 45 |
def prediction(item:Item):
|
|
|
|
| 35 |
|
| 36 |
@app.post("/train/")
|
| 37 |
def training():
|
| 38 |
+
results=train(dataset)
|
| 39 |
+
return results
|
| 40 |
+
#if dataset is not None:
|
| 41 |
+
#else:
|
| 42 |
+
# return {"message":"First Upload Dataset"}
|
| 43 |
|
| 44 |
@app.post("/predict/")
|
| 45 |
def prediction(item:Item):
|