Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
makseq committed Nov 3, 2020
1 parent 1f89745 commit 46849d5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions label_studio/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,10 +952,8 @@ def api_predict():
task = request.json
if g.project.ml_backends_connected:
task_with_predictions = g.project.make_predictions(task)
g.project.analytics.send(getframeinfo(currentframe()).function)
return make_response(jsonify(task_with_predictions), 200)
else:
g.project.analytics.send(getframeinfo(currentframe()).function, error=400)
return make_response(jsonify("No ML backend"), 400)


Expand Down

0 comments on commit 46849d5

Please sign in to comment.