ganeshkonapalli commited on
Commit
1aebe88
·
verified ·
1 Parent(s): 8992d8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -123,6 +123,11 @@ async def predict(request: PredictionRequest):
123
  except Exception as e:
124
  raise HTTPException(status_code=500, detail=f"Inference error: {str(e)}")
125
 
 
 
 
 
 
126
  if __name__ == "__main__":
127
  import uvicorn
128
  port = int(os.environ.get("PORT", 7860))
 
123
  except Exception as e:
124
  raise HTTPException(status_code=500, detail=f"Inference error: {str(e)}")
125
 
126
+ # ✅ New Endpoint for Validation Only
127
+ @app.post("/validate")
128
+ def validate_input(data: TransactionData):
129
+ return {"message": "✅ Input is valid."}
130
+
131
  if __name__ == "__main__":
132
  import uvicorn
133
  port = int(os.environ.get("PORT", 7860))