farwew commited on
Commit
9f331ce
·
verified ·
1 Parent(s): dee63a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def predict_average(texts: List[str]) -> Dict[str, float]:
105
  app = FastAPI(title="Essay Scoring API", version="2.0.0")
106
 
107
  class BatchInput(BaseModel):
108
- texts: conlist(str, min_items=1) = Field(..., description="Array of essay texts")
109
 
110
  class PerEssayResponse(BaseModel):
111
  predictions: List[Dict[str, float]]
 
105
  app = FastAPI(title="Essay Scoring API", version="2.0.0")
106
 
107
  class BatchInput(BaseModel):
108
+ texts: conlist(str, 1) = Field(..., description="Array of essay texts")
109
 
110
  class PerEssayResponse(BaseModel):
111
  predictions: List[Dict[str, float]]