Spaces:
Runtime error
Runtime error
final app upload
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ Submit the parameters of your car and a XGBoost Machine Learning model, trained
|
|
| 22 |
|
| 23 |
tags_metadata = [
|
| 24 |
{
|
| 25 |
-
"name": "Price Predictions",
|
| 26 |
"description": "Use this endpoint for getting predictions"
|
| 27 |
}
|
| 28 |
]
|
|
@@ -55,7 +55,7 @@ async def docs_redirect():
|
|
| 55 |
return RedirectResponse(url='/docs')
|
| 56 |
|
| 57 |
|
| 58 |
-
@app.post("/predict", tags=["
|
| 59 |
async def predict(predictionFeatures: PredictionFeatures):
|
| 60 |
# Read data
|
| 61 |
input_data = pd.DataFrame({
|
|
|
|
| 22 |
|
| 23 |
tags_metadata = [
|
| 24 |
{
|
| 25 |
+
"name": "Price Predictions πΆπΆπΆ",
|
| 26 |
"description": "Use this endpoint for getting predictions"
|
| 27 |
}
|
| 28 |
]
|
|
|
|
| 55 |
return RedirectResponse(url='/docs')
|
| 56 |
|
| 57 |
|
| 58 |
+
@app.post("/predict", tags=["Price Predictions πΆπΆπΆ"])
|
| 59 |
async def predict(predictionFeatures: PredictionFeatures):
|
| 60 |
# Read data
|
| 61 |
input_data = pd.DataFrame({
|