Spaces:
Sleeping
Sleeping
Update app.py
#1
by
namanpenguin
- opened
app.py
CHANGED
|
@@ -107,7 +107,7 @@ async def root():
|
|
| 107 |
async def health_check():
|
| 108 |
return {"status": "healthy"}
|
| 109 |
|
| 110 |
-
@app.post("/predict")
|
| 111 |
async def predict(request: PredictionRequest):
|
| 112 |
try:
|
| 113 |
input_data = pd.DataFrame([request.transaction_data.dict()])
|
|
|
|
| 107 |
async def health_check():
|
| 108 |
return {"status": "healthy"}
|
| 109 |
|
| 110 |
+
@app.post("/roberta/predict")
|
| 111 |
async def predict(request: PredictionRequest):
|
| 112 |
try:
|
| 113 |
input_data = pd.DataFrame([request.transaction_data.dict()])
|