Spaces:
Runtime error
Runtime error
Fix
Browse files
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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|