Claude commited on
Commit
f80d3e0
·
unverified ·
1 Parent(s): bfd1ce6

fix: Correct OAuth parameter order in init_session

Browse files

Explicit inputs must come before auto-injected OAuth parameters.
This fixes the "Max challenge attempts exceeded" error.

Files changed (1) hide show
  1. app.py +1 -1
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: