multimodalart HF staff commited on
Commit
e2a4ebe
1 Parent(s): c1a469b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -313,12 +313,12 @@ def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuth
313
  print("Uploading repo...")
314
  api.upload_folder(
315
  folder_path=folder,
316
- repo_id=repo_id,
317
  repo_type="model",
318
  token=oauth_token,
319
  )
320
  print("Changing repo visibility...")
321
- api.update_repo_visibility(repo_id=repo_id, private=False)
322
  except:
323
  raise gr.Error("uploading the repo went wrong")
324
 
 
313
  print("Uploading repo...")
314
  api.upload_folder(
315
  folder_path=folder,
316
+ repo_id=user_repo_id,
317
  repo_type="model",
318
  token=oauth_token,
319
  )
320
  print("Changing repo visibility...")
321
+ api.update_repo_visibility(repo_id=user_repo_id, private=False)
322
  except:
323
  raise gr.Error("uploading the repo went wrong")
324