minor cleanups

This commit is contained in:
Abubakar Abid 2021-12-28 18:10:37 -06:00
parent 0c6dacc85c
commit a1991e36b5
2 changed files with 14 additions and 15 deletions

View File

@ -106,6 +106,20 @@ async def flag(request: Request):
return {'success': True}
# @app.route("/api/interpret/", methods=["POST"])
# #@login_check
# def interpret():
# log_feature_analytics('interpret')
# raw_input = request.json["data"]
# interpretation_scores, alternative_outputs = app.interface.interpret(
# raw_input)
# return jsonify({
# "interpretation_scores": interpretation_scores,
# "alternative_outputs": alternative_outputs
# })
########
# Helper functions
########

View File

@ -189,21 +189,6 @@ def shutdown():
return "Shutting down..."
@app.route("/api/interpret/", methods=["POST"])
#@login_check
def interpret():
log_feature_analytics('interpret')
raw_input = request.json["data"]
interpretation_scores, alternative_outputs = app.interface.interpret(
raw_input)
return jsonify({
"interpretation_scores": interpretation_scores,
"alternative_outputs": alternative_outputs
})
@app.route("/file/<path:path>", methods=["GET"])
#@login_check
def file(path):