Update upload_suggestions.py
Browse files- upload_suggestions.py +4 -3
upload_suggestions.py
CHANGED
@@ -3,8 +3,9 @@ import hashlib
|
|
3 |
import time
|
4 |
from huggingface_hub import HfApi
|
5 |
|
6 |
-
REPO_ID = "axxam/
|
7 |
-
DEST_PATH_IN_REPO = "suggestions
|
|
|
8 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
9 |
CHECKSUM_FILE = "/tmp/.last_suggestions_checksum"
|
10 |
|
@@ -67,7 +68,7 @@ def upload_if_updated():
|
|
67 |
path_or_fileobj=db_path,
|
68 |
path_in_repo=DEST_PATH_IN_REPO,
|
69 |
repo_id=REPO_ID,
|
70 |
-
repo_type=
|
71 |
token=HF_TOKEN
|
72 |
)
|
73 |
save_checksum(current_checksum)
|
|
|
3 |
import time
|
4 |
from huggingface_hub import HfApi
|
5 |
|
6 |
+
REPO_ID = "axxam/libretranslate-suggestions"
|
7 |
+
DEST_PATH_IN_REPO = "suggestions.db"
|
8 |
+
REPO_TYPE = "dataset"
|
9 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
10 |
CHECKSUM_FILE = "/tmp/.last_suggestions_checksum"
|
11 |
|
|
|
68 |
path_or_fileobj=db_path,
|
69 |
path_in_repo=DEST_PATH_IN_REPO,
|
70 |
repo_id=REPO_ID,
|
71 |
+
repo_type=REPO_TYPE,
|
72 |
token=HF_TOKEN
|
73 |
)
|
74 |
save_checksum(current_checksum)
|