Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -129,7 +129,7 @@ async def classify_text(text: str = Form(...)):
|
|
129 |
except Exception as e:
|
130 |
return JSONResponse(content=f"Error classifying text: {str(e)}", status_code=500)
|
131 |
|
132 |
-
|
133 |
async def test_classify_text(text: str = Form(...)):
|
134 |
try:
|
135 |
# Perform text classification using the updated model that returns positive, neutral, or negative
|
|
|
129 |
except Exception as e:
|
130 |
return JSONResponse(content=f"Error classifying text: {str(e)}", status_code=500)
|
131 |
|
132 |
+
@app.post("/test_classify/", description="Classify the provided text with positive, neutral, or negative sentiment.")
|
133 |
async def test_classify_text(text: str = Form(...)):
|
134 |
try:
|
135 |
# Perform text classification using the updated model that returns positive, neutral, or negative
|