Commit ·
bb7b8e3
1
Parent(s): fba411c
Fix HF storage: correct import (get_hf_storage) and upload_video args
Browse files
modules/fact_image/services/fact_creator.py
CHANGED
|
@@ -248,12 +248,12 @@ class FactCreator:
|
|
| 248 |
# ====================
|
| 249 |
# Step 4: Upload to Cloud (Optional)
|
| 250 |
# ====================
|
| 251 |
-
from modules.shared.services.hf_storage import
|
| 252 |
-
hf_client =
|
| 253 |
|
| 254 |
-
if hf_client:
|
| 255 |
logger.info(f"[{job_id}] Uploading to HF Hub...")
|
| 256 |
-
cloud_url = hf_client.upload_video(output_path, "fact_image")
|
| 257 |
if cloud_url:
|
| 258 |
job["video_url"] = cloud_url
|
| 259 |
job["storage"] = "cloud"
|
|
|
|
| 248 |
# ====================
|
| 249 |
# Step 4: Upload to Cloud (Optional)
|
| 250 |
# ====================
|
| 251 |
+
from modules.shared.services.hf_storage import get_hf_storage
|
| 252 |
+
hf_client = get_hf_storage()
|
| 253 |
|
| 254 |
+
if hf_client and hf_client.enabled:
|
| 255 |
logger.info(f"[{job_id}] Uploading to HF Hub...")
|
| 256 |
+
cloud_url = hf_client.upload_video(output_path, job_id, "fact_image")
|
| 257 |
if cloud_url:
|
| 258 |
job["video_url"] = cloud_url
|
| 259 |
job["storage"] = "cloud"
|