MJobe commited on
Commit
d167323
1 Parent(s): 0a12a49

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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
- @@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
 
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