Spaces:
Runtime error
Runtime error
update bug fix for file edit
Browse files
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",
|
| 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
|