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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,8 +52,8 @@ 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
- repo_name.split("/",1)[1]
56
-
57
  try:
58
  api_url = f'https://huggingface.co/api/spaces/{model_id}'
59
  if s_type == "A":
 
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=repo_name.split("/",1)[1]
56
+ print(repo_name)
57
  try:
58
  api_url = f'https://huggingface.co/api/spaces/{model_id}'
59
  if s_type == "A":