Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -90,6 +90,7 @@ def create_and_push(space_type, other_model_name, radio_model_names, model_id, t
|
|
90 |
app = app.replace("$title", title)
|
91 |
app = app.replace("$description", description)
|
92 |
app = app.replace("$prefix", prefix)
|
|
|
93 |
|
94 |
# 3. save the new app.py file
|
95 |
with open("app.py", "w") as f:
|
|
|
90 |
app = app.replace("$title", title)
|
91 |
app = app.replace("$description", description)
|
92 |
app = app.replace("$prefix", prefix)
|
93 |
+
app = app.replace("$space_id", whoami(token=token)["name"] + "/" + model_id.split("/")[-1])
|
94 |
|
95 |
# 3. save the new app.py file
|
96 |
with open("app.py", "w") as f:
|