ysharma HF staff commited on
Commit
9f8ef80
1 Parent(s): 95abdc3

update create_repo if space exist

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def create_space(repo_link, hf_token):
53
  api = HfApi(token=hf_token)
54
  repo_url = api.create_repo(
55
  repo_id=f'LangChain_{repo_name}Bot', #example - ysharma/LangChain_GradioBot
56
- edit_ok = True,
57
  repo_type="space",
58
  space_sdk="gradio",
59
  private=False)
 
53
  api = HfApi(token=hf_token)
54
  repo_url = api.create_repo(
55
  repo_id=f'LangChain_{repo_name}Bot', #example - ysharma/LangChain_GradioBot
56
+ exist_ok = True,
57
  repo_type="space",
58
  space_sdk="gradio",
59
  private=False)