Spaces:
Sleeping
Sleeping
Add HF token to CommitScheduler
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
# These libraries are used in loading and storing persistent data
|
4 |
import json
|
@@ -19,6 +20,7 @@ scheduler = CommitScheduler(
|
|
19 |
repo_type="dataset",
|
20 |
folder_path=JSON_DATASET_DIR,
|
21 |
path_in_repo="data",
|
|
|
22 |
)
|
23 |
|
24 |
def save_json(score1, score2):
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
|
4 |
# These libraries are used in loading and storing persistent data
|
5 |
import json
|
|
|
20 |
repo_type="dataset",
|
21 |
folder_path=JSON_DATASET_DIR,
|
22 |
path_in_repo="data",
|
23 |
+
token = os.getenv("HF_TOKEN")
|
24 |
)
|
25 |
|
26 |
def save_json(score1, score2):
|