Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ load_dotenv()
|
|
28 |
# token to allow acces to Hub, This token should also be
|
29 |
# valid fo calls made to Inference endpoints
|
30 |
HF_token = os.environ["HF_TOKEN"]
|
31 |
-
|
32 |
# create the local logs repo
|
33 |
JSON_DATASET_DIR = Path("json_dataset")
|
34 |
JSON_DATASET_DIR.mkdir(parents=True, exist_ok=True)
|
@@ -40,7 +40,8 @@ scheduler = CommitScheduler(
|
|
40 |
repo_id="GIZ/spaces_logs",
|
41 |
repo_type="dataset",
|
42 |
folder_path=JSON_DATASET_DIR,
|
43 |
-
path_in_repo="audit_chatbot
|
|
|
44 |
)
|
45 |
|
46 |
model_config = getconfig("model_params.cfg")
|
|
|
28 |
# token to allow acces to Hub, This token should also be
|
29 |
# valid fo calls made to Inference endpoints
|
30 |
HF_token = os.environ["HF_TOKEN"]
|
31 |
+
SPACES_LOG = os.environ["SPACES_LOG"]
|
32 |
# create the local logs repo
|
33 |
JSON_DATASET_DIR = Path("json_dataset")
|
34 |
JSON_DATASET_DIR.mkdir(parents=True, exist_ok=True)
|
|
|
40 |
repo_id="GIZ/spaces_logs",
|
41 |
repo_type="dataset",
|
42 |
folder_path=JSON_DATASET_DIR,
|
43 |
+
path_in_repo="audit_chatbot,
|
44 |
+
token=SPACES_LOG
|
45 |
)
|
46 |
|
47 |
model_config = getconfig("model_params.cfg")
|