fix: pdfs directory for url

#7
by wseo - opened
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -155,7 +155,7 @@ def add_certified_user(hf_username, first_name, last_name, certificate_type):
155
  if not check.empty:
156
  history = history.drop(labels=check.index[0], axis=0)
157
 
158
- pdfs_repo_path = os.path.join("data", "pdfs")
159
 
160
  # Copy the PDF from its current location to the target directory in the repository
161
  pdf_repo_filename = f"{hf_username}.pdf" # Create a specific name for the PDF file
 
155
  if not check.empty:
156
  history = history.drop(labels=check.index[0], axis=0)
157
 
158
+ pdfs_repo_path = os.path.join("data", "certificates")
159
 
160
  # Copy the PDF from its current location to the target directory in the repository
161
  pdf_repo_filename = f"{hf_username}.pdf" # Create a specific name for the PDF file