YTShortMakerArchx commited on
Commit
ec9e126
Β·
verified Β·
1 Parent(s): 6c2a271

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -1079,6 +1079,11 @@ def _pipeline_view(p: Dict) -> Dict:
1079
  "error": s["error"],
1080
  }
1081
  if s["status"] == StageStatus.RUNNING:
 
 
 
 
 
1082
  stage_out["progress"] = s.get("progress", 0)
1083
  stage_out["chunks_done"] = s.get("chunks_done", 0)
1084
  stage_out["chunks_total"] = s.get("chunks_total", 0)
@@ -1097,8 +1102,7 @@ def _pipeline_view(p: Dict) -> Dict:
1097
  "assets": {
1098
  "audio_url": p["assets"]["audio_url"],
1099
  "timestamps_url": p["assets"]["timestamps_url"],
1100
- "video_url": p["assets"]["video_url"], # HF dataset URL (if successfully uploaded)
1101
- # These are full URLs - either dataset (permanent) or FFmpeg (temporary)
1102
  "video_download_url": p["assets"].get("video_download_url"),
1103
  "video_stream_url": p["assets"].get("video_stream_url"),
1104
  },
 
1079
  "error": s["error"],
1080
  }
1081
  if s["status"] == StageStatus.RUNNING:
1082
+ # ── Add job verification fields ──
1083
+ stage_out["backend_url"] = s.get("backend_url")
1084
+ stage_out["backend_job_id"] = s.get("backend_job_id")
1085
+ stage_out["backend_type"] = s.get("backend_type")
1086
+ # ── Existing progress fields ──
1087
  stage_out["progress"] = s.get("progress", 0)
1088
  stage_out["chunks_done"] = s.get("chunks_done", 0)
1089
  stage_out["chunks_total"] = s.get("chunks_total", 0)
 
1102
  "assets": {
1103
  "audio_url": p["assets"]["audio_url"],
1104
  "timestamps_url": p["assets"]["timestamps_url"],
1105
+ "video_url": p["assets"]["video_url"],
 
1106
  "video_download_url": p["assets"].get("video_download_url"),
1107
  "video_stream_url": p["assets"].get("video_stream_url"),
1108
  },