Qilan2 commited on
Commit
1c086a6
·
verified ·
1 Parent(s): 0afaf53

Update ff1.py

Browse files
Files changed (1) hide show
  1. ff1.py +2 -0
ff1.py CHANGED
@@ -136,6 +136,7 @@ def create_space(type,key = "", value = "",name = ""):
136
  "type": "space",
137
  "private": True,
138
  "sleepTimeSeconds": 172800,
 
139
  "sdk": "docker"
140
  }
141
  # "template": "SpacesExamples/jupyterlab",
@@ -179,6 +180,7 @@ def create_space(type,key = "", value = "",name = ""):
179
  os.system(f'git config --global user.email "{HF_EMAIL2}"')
180
  os.system(f'git config --global user.name "{HF_USER2}"')
181
  os.chdir(f'/data/{name}')
 
182
  time.sleep(3)
183
  # 如果文件已存在,先删除
184
  if os.path.exists(file_path):
 
136
  "type": "space",
137
  "private": True,
138
  "sleepTimeSeconds": 172800,
139
+ "template": "SpacesExamples/jupyterlab",
140
  "sdk": "docker"
141
  }
142
  # "template": "SpacesExamples/jupyterlab",
 
180
  os.system(f'git config --global user.email "{HF_EMAIL2}"')
181
  os.system(f'git config --global user.name "{HF_USER2}"')
182
  os.chdir(f'/data/{name}')
183
+ os.system(f"rm -rf {file_path}")
184
  time.sleep(3)
185
  # 如果文件已存在,先删除
186
  if os.path.exists(file_path):