Spaces:
Running
Running
inoki-giskard
commited on
Commit
•
e163df8
1
Parent(s):
a0a107f
Add more Giskard hub info for uploading
Browse files
text_classification_ui_helpers.py
CHANGED
@@ -24,7 +24,10 @@ MAX_FEATURES = 20
|
|
24 |
HF_REPO_ID = "HF_REPO_ID"
|
25 |
HF_SPACE_ID = "SPACE_ID"
|
26 |
HF_WRITE_TOKEN = "HF_WRITE_TOKEN"
|
27 |
-
|
|
|
|
|
|
|
28 |
HF_GSK_HUB_UNLOCK_TOKEN = "GSK_HUB_UNLOCK_TOKEN"
|
29 |
|
30 |
|
@@ -250,6 +253,15 @@ def try_submit(m_id, d_id, config, split, local, uid):
|
|
250 |
if os.environ.get(HF_GSK_HUB_KEY):
|
251 |
command.append("--giskard_hub_api_key")
|
252 |
command.append(os.environ.get(HF_GSK_HUB_KEY))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
if os.environ.get(HF_GSK_HUB_UNLOCK_TOKEN):
|
254 |
command.append("--giskard_hub_unlock_token")
|
255 |
command.append(os.environ.get(HF_GSK_HUB_UNLOCK_TOKEN))
|
|
|
24 |
HF_REPO_ID = "HF_REPO_ID"
|
25 |
HF_SPACE_ID = "SPACE_ID"
|
26 |
HF_WRITE_TOKEN = "HF_WRITE_TOKEN"
|
27 |
+
HF_GSK_HUB_URL = "GSK_HUB_URL"
|
28 |
+
HF_GSK_HUB_PROJECT_KEY = "GSK_HUB_PROJECT_KEY"
|
29 |
+
HF_GSK_HUB_KEY = "GSK_API_KEY"
|
30 |
+
HF_GSK_HUB_HF_TOKEN = "GSK_HF_TOKEN"
|
31 |
HF_GSK_HUB_UNLOCK_TOKEN = "GSK_HUB_UNLOCK_TOKEN"
|
32 |
|
33 |
|
|
|
253 |
if os.environ.get(HF_GSK_HUB_KEY):
|
254 |
command.append("--giskard_hub_api_key")
|
255 |
command.append(os.environ.get(HF_GSK_HUB_KEY))
|
256 |
+
if os.environ.get(HF_GSK_HUB_URL):
|
257 |
+
command.append("--giskard_hub_url")
|
258 |
+
command.append(os.environ.get(HF_GSK_HUB_URL))
|
259 |
+
if os.environ.get(HF_GSK_HUB_PROJECT_KEY):
|
260 |
+
command.append("--giskard_hub_project_key")
|
261 |
+
command.append(os.environ.get(HF_GSK_HUB_PROJECT_KEY))
|
262 |
+
if os.environ.get(HF_GSK_HUB_HF_TOKEN):
|
263 |
+
command.append("--giskard_hub_hf_token")
|
264 |
+
command.append(os.environ.get(HF_GSK_HUB_HF_TOKEN))
|
265 |
if os.environ.get(HF_GSK_HUB_UNLOCK_TOKEN):
|
266 |
command.append("--giskard_hub_unlock_token")
|
267 |
command.append(os.environ.get(HF_GSK_HUB_UNLOCK_TOKEN))
|