Spaces:
Running
Running
Update app.py
Browse files
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:
|
| 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]]
|