Spaces:
Runtime error
Runtime error
Claude commited on
fix: Correct OAuth parameter order in init_session
Browse filesExplicit inputs must come before auto-injected OAuth parameters.
This fixes the "Max challenge attempts exceeded" error.
app.py
CHANGED
|
@@ -922,8 +922,8 @@ def create_demo() -> gr.Blocks:
|
|
| 922 |
|
| 923 |
# Initialize session on load
|
| 924 |
def init_session(
|
| 925 |
-
profile: gr.OAuthProfile | None,
|
| 926 |
current_state: SessionState | None,
|
|
|
|
| 927 |
) -> tuple[list[dict], str, SessionState, gr.Column, gr.Column]:
|
| 928 |
"""Initialize session state and welcome message."""
|
| 929 |
if current_state is None:
|
|
|
|
| 922 |
|
| 923 |
# Initialize session on load
|
| 924 |
def init_session(
|
|
|
|
| 925 |
current_state: SessionState | None,
|
| 926 |
+
profile: gr.OAuthProfile | None = None,
|
| 927 |
) -> tuple[list[dict], str, SessionState, gr.Column, gr.Column]:
|
| 928 |
"""Initialize session state and welcome message."""
|
| 929 |
if current_state is None:
|