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')