fix auth issue, gradio license

This commit is contained in:
Ali Abid 2021-06-18 11:17:09 -07:00
parent efe46b10e6
commit 220b5069a2
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ Summary: Python library for easily interacting with trained machine learning mod
Home-page: https://github.com/gradio-app/gradio-UI
Author: Abubakar Abid
Author-email: a12d@stanford.edu
License: UNKNOWN
License: Apache License 2.0
Description: UNKNOWN
Keywords: machine learning,visualization,reproducibility
Platform: UNKNOWN

View File

@ -152,7 +152,7 @@ def login():
@app.route("/config/", methods=["GET"])
def get_config():
if current_user.is_authenticated:
if app.interface.auth is None or current_user.is_authenticated:
return jsonify(app.interface.config)
else:
return {"auth_required": True, "auth_message": app.interface.auth_message}