Spaces:
Sleeping
Sleeping
return string of dict
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ async def predict(request: PredictionRequest): # ← Validates input automatica
|
|
90 |
|
91 |
@app.post("/evaluate")
|
92 |
async def evaluate(request: EvaluationRequest): # ← Validates input automatically
|
93 |
-
return evaluate_batch(request.file_path, hf_repo, backend="local")
|
94 |
|
95 |
@app.get("/health")
|
96 |
def health_check():
|
|
|
90 |
|
91 |
@app.post("/evaluate")
|
92 |
async def evaluate(request: EvaluationRequest): # ← Validates input automatically
|
93 |
+
return str(evaluate_batch(request.file_path, hf_repo, backend="local"))
|
94 |
|
95 |
@app.get("/health")
|
96 |
def health_check():
|