fix: pdfs directory for url (#7)
Browse files- fix: pdfs directory for url (1d8823497663f3766dc5820759254153b9e95490)
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", "
|
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
|