Joseph Pollack commited on
Commit
3a8b76e
·
unverified ·
1 Parent(s): c9c4ddf

adds repo create for demo

Browse files
Files changed (1) hide show
  1. scripts/deploy_demo_space.py +2 -2
scripts/deploy_demo_space.py CHANGED
@@ -484,8 +484,8 @@ os.environ['BRAND_PROJECT_URL'] = json.dumps({_json.dumps(self.brand_project_url
484
  cli_attempts = [
485
  ["hf", "space", "create", self.space_id, "--type", "gradio", "--hardware", "cpu-basic"],
486
  ["huggingface-cli", "space", "create", self.space_id, "--type", "gradio", "--hardware", "cpu-basic"],
487
- ["hf", "repo", "create", self.space_id, "--repo-type", "space"],
488
- ["huggingface-cli", "repo", "create", self.space_id, "--repo-type", "space"],
489
  ]
490
 
491
  last_err = None
 
484
  cli_attempts = [
485
  ["hf", "space", "create", self.space_id, "--type", "gradio", "--hardware", "cpu-basic"],
486
  ["huggingface-cli", "space", "create", self.space_id, "--type", "gradio", "--hardware", "cpu-basic"],
487
+ ["hf", "repo", "create", self.space_id, "--repo-type", "space", "--space-sdk", "gradio"],
488
+ ["huggingface-cli", "repo", "create", self.space_id, "--repo-type", "space", "--space-sdk", "gradio"],
489
  ]
490
 
491
  last_err = None