Spaces:
Runtime error
Runtime error
Commit
·
b9e7544
1
Parent(s):
2c04be3
update dockerfile
Browse files- load_data.py +4 -1
load_data.py
CHANGED
|
@@ -11,7 +11,7 @@ from argilla.labeling.text_classification import Rule, add_rules
|
|
| 11 |
def load_datasets():
|
| 12 |
# This is the code that you want to execute when the endpoint is available
|
| 13 |
print("Argilla is available! Loading datasets")
|
| 14 |
-
api_key = os.getenv("API_KEY"
|
| 15 |
rg.init(api_key=api_key, workspace="admin")
|
| 16 |
|
| 17 |
# load dataset from json
|
|
@@ -102,6 +102,9 @@ def load_datasets():
|
|
| 102 |
|
| 103 |
|
| 104 |
while True:
|
|
|
|
|
|
|
|
|
|
| 105 |
try:
|
| 106 |
response = requests.get("http://0.0.0.0:6900/")
|
| 107 |
if response.status_code == 200:
|
|
|
|
| 11 |
def load_datasets():
|
| 12 |
# This is the code that you want to execute when the endpoint is available
|
| 13 |
print("Argilla is available! Loading datasets")
|
| 14 |
+
api_key = os.getenv("API_KEY")
|
| 15 |
rg.init(api_key=api_key, workspace="admin")
|
| 16 |
|
| 17 |
# load dataset from json
|
|
|
|
| 102 |
|
| 103 |
|
| 104 |
while True:
|
| 105 |
+
print("Loading...")
|
| 106 |
+
api_key = os.getenv("API_KEY")
|
| 107 |
+
print("API KEY", api_key)
|
| 108 |
try:
|
| 109 |
response = requests.get("http://0.0.0.0:6900/")
|
| 110 |
if response.status_code == 200:
|