Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,16 +45,16 @@ pdf_path = "Private_Book/KOMBI_all2.pdf" # Replace with your PDF file path
|
|
45 |
|
46 |
# Step 1: Clone the Dataset Repository
|
47 |
repo = Repository(
|
48 |
-
local_dir="
|
49 |
repo_type="dataset", # Specify that this is a dataset repository
|
50 |
-
clone_from="Anne31415/
|
51 |
token=os.environ["HUB_TOKEN2"] # Use the secret token to authenticate
|
52 |
)
|
53 |
repo.git_pull() # Pull the latest changes (if any)
|
54 |
|
55 |
|
56 |
# Step 2: Load the PDF File
|
57 |
-
pdf_path2 = "
|
58 |
|
59 |
|
60 |
api_key = os.getenv("OPENAI_API_KEY")
|
|
|
45 |
|
46 |
# Step 1: Clone the Dataset Repository
|
47 |
repo = Repository(
|
48 |
+
local_dir="Deutsche_Kodierrichtlinie23", # Local directory to clone the repository
|
49 |
repo_type="dataset", # Specify that this is a dataset repository
|
50 |
+
clone_from="Anne31415/Deutsche_Kodierrichtlinie23", # Replace with your repository URL
|
51 |
token=os.environ["HUB_TOKEN2"] # Use the secret token to authenticate
|
52 |
)
|
53 |
repo.git_pull() # Pull the latest changes (if any)
|
54 |
|
55 |
|
56 |
# Step 2: Load the PDF File
|
57 |
+
pdf_path2 = "Deutsche_Kodierrichtlinie23/Deutsche_Kodierrichtlinien_Version_2023_Endversion_im_PDF-Format_221013.pdf" # Replace with your PDF file path
|
58 |
|
59 |
|
60 |
api_key = os.getenv("OPENAI_API_KEY")
|