xp3857 commited on
Commit
7b5ca92
·
1 Parent(s): c096185

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def build_space(token,t_name,s_type,m_type=None,r_type=None,d_app=None,d_css=Non
52
  api = HfApi(token=token)
53
  repo_name = get_full_repo_name(model_id=model_id, token=token)
54
  print (repo_name)
55
-
56
 
57
  try:
58
  api_url = f'https://huggingface.co/api/spaces/{model_id}'
 
52
  api = HfApi(token=token)
53
  repo_name = get_full_repo_name(model_id=model_id, token=token)
54
  print (repo_name)
55
+ repo_name.split("/",1)[1]
56
 
57
  try:
58
  api_url = f'https://huggingface.co/api/spaces/{model_id}'