ysharma HF staff commited on
Commit
b74ea6d
1 Parent(s): a7fc947

update bug fix for file edit

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def upload_files_to_space(repo_link, hf_token):
82
  #Replacing the repo namein app.py
83
  with open("template/app_og.py", "r") as f:
84
  app = f.read()
85
- app = app.replace("$RepoName", reponame)
86
  #app = app.replace("$space_id", whoami(token=token)["name"] + "/" + model_id.split("/")[-1])
87
 
88
  #Saving the new app.py file to disk
 
82
  #Replacing the repo namein app.py
83
  with open("template/app_og.py", "r") as f:
84
  app = f.read()
85
+ app = app.replace("$RepoName", repo_name)
86
  #app = app.replace("$space_id", whoami(token=token)["name"] + "/" + model_id.split("/")[-1])
87
 
88
  #Saving the new app.py file to disk