From cc4e41487be5039948633c9c252b8e3620e8bcc3 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 22:38:52 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Micro-UX=20improvemen?= =?UTF-8?q?ts=20for=20clarity=20and=20delight?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Renamed "Cut Intensity" to "Cut Interval (Beats)" - Updated "Video Playback Speed" info to include "Double Speed" - Added emojis to the create button - Recorded UX learning in .Jules/palette.md Co-authored-by: Alchemist-Production <222590780+Alchemist-Production@users.noreply.github.com> --- .Jules/palette.md | 3 +++ app.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .Jules/palette.md diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 0000000..5685175 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2025-02-18 - Gradio File Component Limitation +**Learning:** The `gr.File` component in Gradio does not support the `info` argument for helper text, unlike other components like `gr.Textbox` or `gr.Slider`. +**Action:** When adding instructions for file uploads, rely on the `label` or add descriptive Markdown text above/below the component instead of using the `info` parameter. diff --git a/app.py b/app.py index 16bee30..7d7ee4c 100644 --- a/app.py +++ b/app.py @@ -121,7 +121,7 @@ def create_ui() -> gr.Blocks: maximum=16, value=4, step=1, - label='Cut Intensity', + label='Cut Interval (Beats)', info='Number of beats until next cut.' ) @@ -136,7 +136,7 @@ def create_ui() -> gr.Blocks: choices=['Normal Speed', 'Half Speed', 'Double Speed'], value='Normal Speed', label='Video Playback Speed', - info='Play all video clips at normal or half speed.' + info='Play all video clips at normal, half, or double speed.' ) with gr.Row(): @@ -160,7 +160,7 @@ def create_ui() -> gr.Blocks: info='Base name for the generated video file. A timestamp will be added.' ) - process_btn = gr.Button('Create Music Video', variant='primary') + process_btn = gr.Button('🎵 Create Music Video 🎬', variant='primary') with gr.Column(scale=1): gr.Markdown('### Output')