GuillaumeSalouHF HF staff commited on
Commit
2eb2337
1 Parent(s): fc193de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -13,16 +13,14 @@ from fastapi_utils.tasks import repeat_every
13
 
14
  from datasets import load_dataset, Image
15
 
16
- dataset = load_dataset("beans", split="train")
17
-
18
- dataset[0]["image"]
19
 
20
  def get_datasetdata(dataset_path):
21
 
22
 
23
 
24
- def sync_rooms_to_dataset():
25
-
 
26
 
27
  app = FastAPI()
28
 
@@ -41,5 +39,5 @@ def sync():
41
  @app.on_event("startup")
42
  @repeat_every(seconds=1800)
43
  def repeat_sync():
44
- sync_rooms_to_dataset()
45
  return "Synced data to huggingface datasets"
 
13
 
14
  from datasets import load_dataset, Image
15
 
 
 
 
16
 
17
  def get_datasetdata(dataset_path):
18
 
19
 
20
 
21
+ def sync_discussion_to_dataset():
22
+ dataset = load_dataset("beans", split="train")
23
+ dataset[0]["image"]
24
 
25
  app = FastAPI()
26
 
 
39
  @app.on_event("startup")
40
  @repeat_every(seconds=1800)
41
  def repeat_sync():
42
+ sync_to_dataset()
43
  return "Synced data to huggingface datasets"