ysharma HF staff commited on
Commit
f968014
1 Parent(s): 5cb8f3c

update token name bug

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=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")