Bijoy09 commited on
Commit
3adf7f1
1 Parent(s): a84c0cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -38,6 +38,7 @@ class TextRequest(BaseModel):
38
  text: str
39
 
40
  @app.post("/predict/")
 
41
  async def predict(request: TextRequest):
42
  try:
43
  logger.info(f"Received text: {request.text}")
 
38
  text: str
39
 
40
  @app.post("/predict/")
41
+ @app.post("/predict")
42
  async def predict(request: TextRequest):
43
  try:
44
  logger.info(f"Received text: {request.text}")