Update app.py
Browse files
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}")
|