Spaces:
Sleeping
Sleeping
Update database.py
Browse files- database.py +2 -1
database.py
CHANGED
|
@@ -26,7 +26,7 @@ def commit_to_huggingface():
|
|
| 26 |
api = HfApi()
|
| 27 |
|
| 28 |
# Replace with your Space's repository name
|
| 29 |
-
repo_id = "
|
| 30 |
|
| 31 |
# Upload and commit the dataset.db file
|
| 32 |
api.upload_file(
|
|
@@ -37,6 +37,7 @@ def commit_to_huggingface():
|
|
| 37 |
)
|
| 38 |
|
| 39 |
|
|
|
|
| 40 |
def save_to_db(chunks, topics=None):
|
| 41 |
"""Save chunks to the SQLite database."""
|
| 42 |
# Ensure the database and table are initialized
|
|
|
|
| 26 |
api = HfApi()
|
| 27 |
|
| 28 |
# Replace with your Space's repository name
|
| 29 |
+
repo_id = "Danielrahmai1991/dataset_interface"
|
| 30 |
|
| 31 |
# Upload and commit the dataset.db file
|
| 32 |
api.upload_file(
|
|
|
|
| 37 |
)
|
| 38 |
|
| 39 |
|
| 40 |
+
|
| 41 |
def save_to_db(chunks, topics=None):
|
| 42 |
"""Save chunks to the SQLite database."""
|
| 43 |
# Ensure the database and table are initialized
|