Anne31415 commited on
Commit
92932f6
·
verified ·
1 Parent(s): 51c6da7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
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