Anne31415 commited on
Commit
ab6043b
·
1 Parent(s): f42bbe4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -43,8 +43,18 @@ repo.git_pull() # Pull the latest changes (if any)
43
  # Step 2: Load the PDF File
44
  pdf_path = "Private_Book/KOMBI_all2.pdf" # Replace with your PDF file path
45
 
 
 
 
 
 
 
 
 
 
 
46
  # Step 2: Load the PDF File
47
- pdf_path2 = "Deutsche_Kodierrichtlinien_Version_2023_Endversion_im_PDF-Format_221013.pdf" # Replace with your PDF file path
48
 
49
 
50
  api_key = os.getenv("OPENAI_API_KEY")
 
43
  # Step 2: Load the PDF File
44
  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="Private_Book", # Local directory to clone the repository
49
+ repo_type="dataset", # Specify that this is a dataset repository
50
+ clone_from="Anne31415/Private_Book", # Replace with your repository URL
51
+ token=os.environ["HUB_TOKEN"] # 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_Kodierrichtlinien_23.pdf" # Replace with your PDF file path
58
 
59
 
60
  api_key = os.getenv("OPENAI_API_KEY")