broadfield-dev commited on
Commit
7bc7863
·
verified ·
1 Parent(s): 18a9d30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def create_hf_space():
105
  # Verify token has access to Space-Share organization
106
  #if not verify_organization_access(ORGANIZATION, HF_TOKEN):
107
  # return jsonify({"error": f"No write access to organization {ORGANIZATION}. Check your HF_TOKEN permissions."}), 403
108
- api=HfApi(endpoint="https://huggingface.co", token=access_token)
109
  try:
110
  # Attempt to create the repository with explicit organization context
111
  repo_info = api.create_repo(
 
105
  # Verify token has access to Space-Share organization
106
  #if not verify_organization_access(ORGANIZATION, HF_TOKEN):
107
  # return jsonify({"error": f"No write access to organization {ORGANIZATION}. Check your HF_TOKEN permissions."}), 403
108
+ api=HfApi(endpoint="https://huggingface.co", token=HF_TOKEN)
109
  try:
110
  # Attempt to create the repository with explicit organization context
111
  repo_info = api.create_repo(