mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-07 11:46:51 +08:00
fix auth issue, gradio license
This commit is contained in:
parent
27ca0dcbf8
commit
8c9ee443a2
@ -5,7 +5,7 @@ Summary: Python library for easily interacting with trained machine learning mod
|
|||||||
Home-page: https://github.com/gradio-app/gradio-UI
|
Home-page: https://github.com/gradio-app/gradio-UI
|
||||||
Author: Abubakar Abid
|
Author: Abubakar Abid
|
||||||
Author-email: a12d@stanford.edu
|
Author-email: a12d@stanford.edu
|
||||||
License: UNKNOWN
|
License: Apache License 2.0
|
||||||
Description: UNKNOWN
|
Description: UNKNOWN
|
||||||
Keywords: machine learning,visualization,reproducibility
|
Keywords: machine learning,visualization,reproducibility
|
||||||
Platform: UNKNOWN
|
Platform: UNKNOWN
|
||||||
|
@ -152,7 +152,7 @@ def login():
|
|||||||
|
|
||||||
@app.route("/config/", methods=["GET"])
|
@app.route("/config/", methods=["GET"])
|
||||||
def get_config():
|
def get_config():
|
||||||
if current_user.is_authenticated:
|
if app.interface.auth is None or current_user.is_authenticated:
|
||||||
return jsonify(app.interface.config)
|
return jsonify(app.interface.config)
|
||||||
else:
|
else:
|
||||||
return {"auth_required": True, "auth_message": app.interface.auth_message}
|
return {"auth_required": True, "auth_message": app.interface.auth_message}
|
||||||
|
Loading…
Reference in New Issue
Block a user