Spaces:
Runtime error
Runtime error
Fix
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ 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=
|
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(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)
|