Spaces:
Runtime error
Runtime error
update token name bug
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ def upload_files_to_space(repo_link, hf_token):
|
|
| 112 |
path_or_fileobj="template/requirements.txt",
|
| 113 |
path_in_repo="requirements.txt",
|
| 114 |
repo_id=f'{user_name}/LangChain_{repo_name}Bot', #model_id,
|
| 115 |
-
token=
|
| 116 |
repo_type="space",)
|
| 117 |
#Deleting the files - search_index and app.py file
|
| 118 |
os.remove("template/app.py")
|
|
|
|
| 112 |
path_or_fileobj="template/requirements.txt",
|
| 113 |
path_in_repo="requirements.txt",
|
| 114 |
repo_id=f'{user_name}/LangChain_{repo_name}Bot', #model_id,
|
| 115 |
+
token=hf_token,
|
| 116 |
repo_type="space",)
|
| 117 |
#Deleting the files - search_index and app.py file
|
| 118 |
os.remove("template/app.py")
|