Spaces:
Runtime error
Runtime error
Commit
Β·
95ca539
1
Parent(s):
ad005e6
doc
Browse files
app.py
CHANGED
|
@@ -150,10 +150,7 @@ def add_solution_cbk(
|
|
| 150 |
|
| 151 |
def gate_submission(profile: gr.OAuthProfile | None):
|
| 152 |
"""
|
| 153 |
-
|
| 154 |
-
- login_box visibility (True if logged OUT)
|
| 155 |
-
- submit_panel visibility (True if logged IN)
|
| 156 |
-
- status line
|
| 157 |
"""
|
| 158 |
if profile is None:
|
| 159 |
return gr.update(visible=True), gr.update(visible=False)
|
|
|
|
| 150 |
|
| 151 |
def gate_submission(profile: gr.OAuthProfile | None):
|
| 152 |
"""
|
| 153 |
+
@brief Toggles the visibility of the login box and submission panel based on the user's login status.
|
|
|
|
|
|
|
|
|
|
| 154 |
"""
|
| 155 |
if profile is None:
|
| 156 |
return gr.update(visible=True), gr.update(visible=False)
|