mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
minor cleanups
This commit is contained in:
parent
0c6dacc85c
commit
a1991e36b5
@ -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
|
||||
########
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user