cbensimon HF staff commited on
Commit
5c39d5a
1 Parent(s): 7ea0ffb
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -36,7 +36,12 @@ def webhook(payload: dict = Body(...)):
36
 
37
  data_dict = {"data": {"images": image_urls, "prompt": title}, "discussion_num": 1000}
38
 
39
- path = hf_hub_download(repo_id=dataset_repo_id, filename=file_name, cache_dir="image_cache", repo_type="dataset")
 
 
 
 
 
40
 
41
  with open(path, "r") as f:
42
  data = json.load(f)
 
36
 
37
  data_dict = {"data": {"images": image_urls, "prompt": title}, "discussion_num": 1000}
38
 
39
+ path = hf_hub_download(
40
+ repo_id=dataset_repo_id,
41
+ filename=file_name,
42
+ cache_dir="/home/user/app/image_cache",
43
+ repo_type="dataset",
44
+ )
45
 
46
  with open(path, "r") as f:
47
  data = json.load(f)