update
Browse filesFiles changed (3)
- README.md+1
- backend_api.py+1-1
- backend_deploy.py+3-1
10 unmodified lines11121314151610 unmodified lineshf_oauth_expiration_minutes: 43200hf_oauth_scopes:- manage-repos---> **Note:** This is the Docker Space configuration for the React frontend version.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 lines119120121122123124125118 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")OPENID_PROVIDER_URL = os.getenv("OPENID_PROVIDER_URL", "https://huggingface.co")SPACE_HOST = os.getenv("SPACE_HOST", "localhost:7860")118 unmodified lines119120121122123124125118 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 write-discussions")OPENID_PROVIDER_URL = os.getenv("OPENID_PROVIDER_URL", "https://huggingface.co")SPACE_HOST = os.getenv("SPACE_HOST", "localhost:7860")
1430 unmodified lines143114321433143414351436143714381 unmodified line1440144114421443144414451430 unmodified lines)print(f"[PR] Prepared {len(operations)} file operations")# Create commit with PR (token already in HfApi instance)commit_info = api.create_commit(repo_id=repo_id,repo_type="space",1 unmodified linecommit_message=pr_title,commit_description=pr_description,create_pr=True, # This creates a PR with the changes)# Extract PR URL1430 unmodified lines1431143214331434143514361437143814391 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 (pass token explicitly)commit_info = api.create_commit(repo_id=repo_id,repo_type="space",1 unmodified linecommit_message=pr_title,commit_description=pr_description,create_pr=True, # This creates a PR with the changestoken=token, # Explicitly pass token)# Extract PR URL
README.md+1
backend_api.py+1-1
backend_deploy.py+3-1