multimodalart HF staff commited on
Commit
433fbb7
1 Parent(s): d6bfdd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -314,7 +314,6 @@ def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuth
314
  print(user_repo_id)
315
  create_repo(repo_id=user_repo_id, private=False, exist_ok=True, token=oauth_token.token)
316
  print("Uploading repo...")
317
-
318
  upload_folder(
319
  folder_path=folder,
320
  repo_id=user_repo_id,
@@ -322,7 +321,7 @@ def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuth
322
  token=oauth_token.token
323
  )
324
 
325
- update_repo_visibility(repo_id=user_repo_id, private=False)
326
  except:
327
  raise gr.Error("uploading the repo went wrong")
328
 
 
314
  print(user_repo_id)
315
  create_repo(repo_id=user_repo_id, private=False, exist_ok=True, token=oauth_token.token)
316
  print("Uploading repo...")
 
317
  upload_folder(
318
  folder_path=folder,
319
  repo_id=user_repo_id,
 
321
  token=oauth_token.token
322
  )
323
 
324
+ update_repo_visibility(repo_id=user_repo_id, private=False, token=oauth_token.token)
325
  except:
326
  raise gr.Error("uploading the repo went wrong")
327