vivekchakraverty commited on
Commit
436c66c
·
verified ·
1 Parent(s): 6e9f89d

Surface real screenshot DownloadError detail

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -287,9 +287,8 @@ def run_pipeline(topic, hf_token, yt_api_key, llm_model, vlm_model,
287
  selected = frames_mod.capture_shots(
288
  times, best["video_id"], frames_dir, cookiefile, proxy, progress)
289
  except Exception as exc:
290
- yield (status(f"⚠️ Couldn't fetch screenshots ({type(exc).__name__}) — "
291
- "producing a **text-only** tutorial. Ensure `YT_PROXY` is set "
292
- "(HTTPS proxy) so yt-dlp can download clips."),
293
  ranking, gr.update(value=transcript), gr.update())
294
  if selected:
295
  progress(0.88, desc="Captioning")
 
287
  selected = frames_mod.capture_shots(
288
  times, best["video_id"], frames_dir, cookiefile, proxy, progress)
289
  except Exception as exc:
290
+ yield (status(f"⚠️ Couldn't fetch screenshots — text-only tutorial. "
291
+ f"`{type(exc).__name__}: {str(exc)[:400]}`"),
 
292
  ranking, gr.update(value=transcript), gr.update())
293
  if selected:
294
  progress(0.88, desc="Captioning")