Spaces:
Running
Running
change: add junyiacademy.appspot.com to valid origin
Browse files
app.py
CHANGED
@@ -2968,7 +2968,7 @@ def init_params(text, request: gr.Request):
|
|
2968 |
|
2969 |
# check if origin is from junyiacademy
|
2970 |
origin = request.headers.get("origin", "")
|
2971 |
-
if "junyiacademy.org" in origin:
|
2972 |
password_text = PASSWORD
|
2973 |
admin = gr.update(visible=False)
|
2974 |
reading_passage_admin = gr.update(visible=False)
|
@@ -2978,7 +2978,7 @@ def init_params(text, request: gr.Request):
|
|
2978 |
lesson_plan_accordion = gr.update(visible=False)
|
2979 |
exit_ticket_accordion = gr.update(visible=False)
|
2980 |
ai_chatbot_params = gr.update(visible=False)
|
2981 |
-
|
2982 |
if IS_ENV_PROD == "True":
|
2983 |
is_env_prod = gr.update(value=True)
|
2984 |
|
|
|
2968 |
|
2969 |
# check if origin is from junyiacademy
|
2970 |
origin = request.headers.get("origin", "")
|
2971 |
+
if "junyiacademy.org" in origin or "junyiacademy.appspot.com" in origin:
|
2972 |
password_text = PASSWORD
|
2973 |
admin = gr.update(visible=False)
|
2974 |
reading_passage_admin = gr.update(visible=False)
|
|
|
2978 |
lesson_plan_accordion = gr.update(visible=False)
|
2979 |
exit_ticket_accordion = gr.update(visible=False)
|
2980 |
ai_chatbot_params = gr.update(visible=False)
|
2981 |
+
|
2982 |
if IS_ENV_PROD == "True":
|
2983 |
is_env_prod = gr.update(value=True)
|
2984 |
|