Spaces:
Runtime error
Runtime error
update create_repo if space exist
Browse files
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 |
-
|
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)
|