Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .Jules/palette.md
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
)

Expand All @@ -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():
Expand All @@ -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')
Expand Down