update
Browse filesFiles changed (3)
- README.md+1
- backend_api.py+1-1
- backend_deploy.py+3-1
10 unmodified lines1112131415161710 unmodified lineshf_oauth_expiration_minutes: 43200hf_oauth_scopes:- manage-repos- write-discussions---
> **Note:** This is the Docker Space configuration for the React frontend version. 118 unmodified lines119120121122122123124125118 unmodified lines# OAuth and environment configuration (must be before CORS)OAUTH_CLIENT_ID = os.getenv("OAUTH_CLIENT_ID", "")OAUTH_CLIENT_SECRET = os.getenv("OAUTH_CLIENT_SECRET", "")OAUTH_SCOPES = os.getenv("OAUTH_SCOPES", "openid profile manage-repos")OAUTH_SCOPES = os.getenv("OAUTH_SCOPES", "openid profile manage-repos write-discussions")OPENID_PROVIDER_URL = os.getenv("OPENID_PROVIDER_URL", "https://huggingface.co")SPACE_HOST = os.getenv("SPACE_HOST", "localhost:7860")
1430 unmodified lines14311432143314341435143514361437143814391 unmodified line14411442144314441445144614471430 unmodified lines ) print(f"[PR] Prepared {len(operations)} file operations") print(f"[PR] Token being used (first 20 chars): {token[:20] if token else 'None'}...") # Create commit with PR (token already in HfApi instance) # Create commit with PR (pass token explicitly) commit_info = api.create_commit( repo_id=repo_id, repo_type="space",1 unmodified line commit_message=pr_title, commit_description=pr_description, create_pr=True, # This creates a PR with the changes token=token, # Explicitly pass token ) # Extract PR URLREADME.md+1
backend_api.py+1-1
backend_deploy.py+3-1