Fix /cards visibility + bucket listing typo

#3
by ArthurZ HF Staff - opened
SlyFox org

What this fixes

  1. Persona pages were redirecting to a non-existent inline tab.
    /cards, /arena, /buddy, /mirror, /quests, /mood-ci,
    /marketplace (and /jobs) all 302'''d to /?tab=cards etc., but the
    main index.html'''s inline tab UX isn'''t built yet โ€” so users saw nothing.

    New behavior: direct URLs serve the standalone HTML by default. ?tab=1
    still redirects to the SPA-tab path for the friend'''s eventual inline UI.
    ?embed=1 continues to serve the raw file (iframe-friendly). Both
    escape hatches preserved; the user-visible path is fixed.

  2. HfApi.list_bucket_files doesn'''t exist โ€” the correct method in hub
    1.x is list_bucket_tree(bucket_id, prefix=..., recursive=...). Was breaking
    /api/jobs listing and /api/community/runs with
    AttributeError (visible in runtime logs).

Verified

  • All 7 new pages now return 200 + HTML on direct GET.
  • Gemma 2 2B IT vectors are live at hf://buckets/HF-slyfox/emotion-vectors/google/gemma-2-2b-it/
    (valence_separation=-0.9187, avg_pairwise_cosine=-0.0505 โ€” well within EmotionScope'''s targets).
ArthurZ changed pull request status to closed

Sign up or log in to comment