Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- config.py +1 -1
- copy_chromadb.py +3 -3
config.py
CHANGED
|
@@ -149,7 +149,7 @@ class SanatanConfig:
|
|
| 149 |
"name": "kamba_ramayanam",
|
| 150 |
"title": "Kamba Ramayanam",
|
| 151 |
"output_dir": "./output/kamba_ramayanam",
|
| 152 |
-
"collection_name": "
|
| 153 |
"pdf_path": "./data/kamba_ramayanam.pdf",
|
| 154 |
"source": "https://archive.org/details/vrajeshkumar_gmail_061/01-%E0%AE%AA%E0%AE%BE%E0%AE%B2%20%E0%AE%95%E0%AE%BE%E0%AE%A3%E0%AF%8D%E0%AE%9F%E0%AE%AE%E0%AF%8D/page/n15/mode/2up",
|
| 155 |
"language": "tam",
|
|
|
|
| 149 |
"name": "kamba_ramayanam",
|
| 150 |
"title": "Kamba Ramayanam",
|
| 151 |
"output_dir": "./output/kamba_ramayanam",
|
| 152 |
+
"collection_name": "kamba_ramayanam_en",
|
| 153 |
"pdf_path": "./data/kamba_ramayanam.pdf",
|
| 154 |
"source": "https://archive.org/details/vrajeshkumar_gmail_061/01-%E0%AE%AA%E0%AE%BE%E0%AE%B2%20%E0%AE%95%E0%AE%BE%E0%AE%A3%E0%AF%8D%E0%AE%9F%E0%AE%AE%E0%AF%8D/page/n15/mode/2up",
|
| 155 |
"language": "tam",
|
copy_chromadb.py
CHANGED
|
@@ -3,12 +3,12 @@ from tqdm import tqdm # Optional: For progress bar
|
|
| 3 |
|
| 4 |
# Connect to source and destination local persistent clients
|
| 5 |
source_client = chromadb.PersistentClient(
|
| 6 |
-
path="../
|
| 7 |
)
|
| 8 |
destination_client = chromadb.PersistentClient(path="./chromadb-store")
|
| 9 |
|
| 10 |
-
source_collection_name = "
|
| 11 |
-
destination_collection_name = "
|
| 12 |
|
| 13 |
# Get the source collection
|
| 14 |
source_collection = source_client.get_collection(source_collection_name)
|
|
|
|
| 3 |
|
| 4 |
# Connect to source and destination local persistent clients
|
| 5 |
source_client = chromadb.PersistentClient(
|
| 6 |
+
path="../kamba_ramayanam_ai/output/chroma_store"
|
| 7 |
)
|
| 8 |
destination_client = chromadb.PersistentClient(path="./chromadb-store")
|
| 9 |
|
| 10 |
+
source_collection_name = "kamba_ramayanam_en"
|
| 11 |
+
destination_collection_name = "kamba_ramayanam_en"
|
| 12 |
|
| 13 |
# Get the source collection
|
| 14 |
source_collection = source_client.get_collection(source_collection_name)
|