yourusername commited on
Commit
ea67928
1 Parent(s): 0ab5dfe

:bug: add token

Browse files
Files changed (1) hide show
  1. pages/2_👀_view_card.py +2 -2
pages/2_👀_view_card.py CHANGED
@@ -87,8 +87,8 @@ def main():
87
 
88
  if submit:
89
  if len(repo_id.split('/')) == 2:
90
- repo_url = create_repo(repo_id, exist_ok=True)# token=token)
91
- card.push_to_hub(repo_id)
92
  st.success(f"Pushed the card to the repo [here]({repo_url}!")
93
  else:
94
  st.error("Repo ID invalid. It should be username/repo-name. For example: nateraw/food")
 
87
 
88
  if submit:
89
  if len(repo_id.split('/')) == 2:
90
+ repo_url = create_repo(repo_id, exist_ok=True, token=token)
91
+ card.push_to_hub(repo_id, token=token)
92
  st.success(f"Pushed the card to the repo [here]({repo_url}!")
93
  else:
94
  st.error("Repo ID invalid. It should be username/repo-name. For example: nateraw/food")