farwew commited on
Commit
c8d4b8c
·
verified ·
1 Parent(s): b0a084c

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, 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: List[str] = Field(...)
109
 
110
  class PerEssayResponse(BaseModel):
111
  predictions: List[Dict[str, float]]