KeivanR commited on
Commit
f2f01ac
·
1 Parent(s): 0c10f09

return string of dict

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