Play studio results with sound and enable sign-in for the workflow canvas
Browse filesThe studio result video no longer starts muted (it falls back to muted only if the browser blocks sound). hf_oauth lets workflow visitors sign in so runs use their own ZeroGPU quota.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Files changed (2)
- README.md+1
- studio.html+4-1
6 unmodified lines7891011126 unmodified linessdk: gradiosdk_version: 6.32.0app_file: app.pystartup_duration_timeout: 1hpinned: falselicense: other6 unmodified lines789101112136 unmodified linessdk: gradiosdk_version: 6.32.0app_file: app.pyhf_oauth: truestartup_duration_timeout: 1hpinned: falselicense: other
297 unmodified lines298299300301302303304330 unmodified lines635636637638639640297 unmodified lines<figure class="doc" id="doc-after"><figcaption>Output video</figcaption><div class="stage" id="after-stage"><video id="result-video" controls autoplay muted playsinline hidden></video><div class="drop-hint" id="result-hint"><b>Nothing yet</b>Hit Generate — 2 or 4 steps, audio included</div></div><div class="doc-bar">330 unmodified linesvideo.src = uri;video.hidden = false;video.classList.add("previewing");$("result-hint").style.display = "none";const dl = $("result-download");dl.href = uri; dl.hidden = false;297 unmodified lines298299300301302303304330 unmodified lines635636637638639640641642643297 unmodified lines<figure class="doc" id="doc-after"><figcaption>Output video</figcaption><div class="stage" id="after-stage"><video id="result-video" controls playsinline hidden></video><div class="drop-hint" id="result-hint"><b>Nothing yet</b>Hit Generate — 2 or 4 steps, audio included</div></div><div class="doc-bar">330 unmodified linesvideo.src = uri;video.hidden = false;video.classList.add("previewing");// play with sound (the visitor clicked Generate); fall back to muted if the browser blocks itvideo.muted = false;video.play().catch(() => { video.muted = true; video.play().catch(() => {}); });$("result-hint").style.display = "none";const dl = $("result-download");dl.href = uri; dl.hidden = false;
README.md+1
studio.html+4-1