Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,6 +43,17 @@ repo = Repository(
|
|
43 |
)
|
44 |
repo.git_pull() # Pull the latest changes (if any)
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
# Step 2: Load the PDF File
|
47 |
pdf_path = "Private_Book/KH_Reform230124.pdf" # Replace with your PDF file path
|
48 |
|
|
|
43 |
)
|
44 |
repo.git_pull() # Pull the latest changes (if any)
|
45 |
|
46 |
+
|
47 |
+
# Step 1: Clone the ChatSet Repository - save all the chats anonymously
|
48 |
+
repo2 = Repository(
|
49 |
+
local_dir="Chat_Store", # Local directory to clone the repository
|
50 |
+
repo_type="dataset", # Specify that this is a dataset repository
|
51 |
+
clone_from="Anne31415/Chat_Store", # Replace with your repository URL
|
52 |
+
token=os.environ["HUB_TOKEN"] # Use the secret token to authenticate
|
53 |
+
)
|
54 |
+
repo.git_pull() # Pull the latest changes (if any)
|
55 |
+
|
56 |
+
|
57 |
# Step 2: Load the PDF File
|
58 |
pdf_path = "Private_Book/KH_Reform230124.pdf" # Replace with your PDF file path
|
59 |
|