anzorq commited on
Commit
a42eeac
β€’
1 Parent(s): 5497c91

Update app.py

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