davanstrien HF staff commited on
Commit
bf9df97
·
1 Parent(s): 3c15d19
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -158,7 +158,7 @@ def process_pdfs(
158
  repo_url = f"https://huggingface.co/datasets/{hf_repo}"
159
  message += f"\nUploaded dataset card to Hugging Face repo: [{hf_repo}]({repo_url})"
160
 
161
- card.push_to_hub(hf_repo)
162
  except Exception as e:
163
  message += f"\nFailed to upload to Hugging Face: {str(e)}"
164
 
 
158
  repo_url = f"https://huggingface.co/datasets/{hf_repo}"
159
  message += f"\nUploaded dataset card to Hugging Face repo: [{hf_repo}]({repo_url})"
160
 
161
+ card.push_to_hub(hf_repo, token=oauth_token.token)
162
  except Exception as e:
163
  message += f"\nFailed to upload to Hugging Face: {str(e)}"
164