Utsav2001 commited on
Commit
f8082bd
Β·
verified Β·
1 Parent(s): 45e5388

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,6 +2,7 @@ import json
2
  from datetime import datetime
3
  from pathlib import Path
4
  from uuid import uuid4
 
5
 
6
  import gradio as gr
7
  from huggingface_hub import CommitScheduler
@@ -19,7 +20,7 @@ scheduler = CommitScheduler(
19
  repo_type="dataset",
20
  folder_path=JSON_DATASET_DIR, # Local directory to sync
21
  path_in_repo="data", # Path in the dataset repository
22
- token=hf_write
23
  )
24
 
25
  # Function to save data
 
2
  from datetime import datetime
3
  from pathlib import Path
4
  from uuid import uuid4
5
+ import os
6
 
7
  import gradio as gr
8
  from huggingface_hub import CommitScheduler
 
20
  repo_type="dataset",
21
  folder_path=JSON_DATASET_DIR, # Local directory to sync
22
  path_in_repo="data", # Path in the dataset repository
23
+ token=os.getenv('hf_write')
24
  )
25
 
26
  # Function to save data