Spaces:
Runtime error
Runtime error
update bug fix
Browse files
app.py
CHANGED
|
@@ -81,14 +81,14 @@ def upload_files_to_space(repo_link, hf_token):
|
|
| 81 |
api.upload_file(
|
| 82 |
path_or_fileobj = "template/app.py",
|
| 83 |
path_in_repo = "app.py",
|
| 84 |
-
repo_id = f'LangChain_{repo_name}Bot' #model_id,
|
| 85 |
token = hf_token,
|
| 86 |
repo_type="space",)
|
| 87 |
#Uploading the new search_index file to the new space
|
| 88 |
api.upload_file(
|
| 89 |
path_or_fileobj = "search_index.pickle",
|
| 90 |
path_in_repo = "search_index.pickle",
|
| 91 |
-
repo_id = f'LangChain_{repo_name}Bot' #model_id,
|
| 92 |
token = hf_token,
|
| 93 |
repo_type="space",)
|
| 94 |
#Upload requirements.txt to the space
|
|
|
|
| 81 |
api.upload_file(
|
| 82 |
path_or_fileobj = "template/app.py",
|
| 83 |
path_in_repo = "app.py",
|
| 84 |
+
repo_id = f'LangChain_{repo_name}Bot', #model_id,
|
| 85 |
token = hf_token,
|
| 86 |
repo_type="space",)
|
| 87 |
#Uploading the new search_index file to the new space
|
| 88 |
api.upload_file(
|
| 89 |
path_or_fileobj = "search_index.pickle",
|
| 90 |
path_in_repo = "search_index.pickle",
|
| 91 |
+
repo_id = f'LangChain_{repo_name}Bot', #model_id,
|
| 92 |
token = hf_token,
|
| 93 |
repo_type="space",)
|
| 94 |
#Upload requirements.txt to the space
|