Nymbo commited on
Commit
7fb5296
·
verified ·
1 Parent(s): dfe621c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -208,9 +208,6 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme") as demo:
208
  # Generate button
209
  generate_button = gr.Button("🎬 Generate Video", variant="primary")
210
 
211
- with gr.Column(scale=1):
212
- # This column is now empty as we'll move model selection to the Advanced Settings
213
- pass
214
 
215
  # Advanced settings in an accordion
216
  with gr.Accordion("Advanced Settings", open=False):
@@ -317,9 +314,9 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme") as demo:
317
  type="password" # Hide the API key for security
318
  )
319
 
320
- # Model selection components
321
- gr.Markdown("### Filter Models")
322
  model_search_box = gr.Textbox(
 
323
  placeholder="Search for a model...",
324
  lines=1
325
  )
@@ -333,16 +330,16 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme") as demo:
333
  "THUDM/CogVideoX-5b"
334
  ]
335
 
336
- gr.Markdown("### Select a model below")
337
  featured_model_radio = gr.Radio(
 
338
  choices=models_list,
339
  value="Lightricks/LTX-Video",
340
  interactive=True
341
  )
342
 
343
- gr.Markdown("### Custom Model")
344
  custom_model_box = gr.Textbox(
345
  value="",
 
346
  info="(Optional) Provide a custom Hugging Face model path. Overrides any selected featured model.",
347
  placeholder="damo-vilab/text-to-video-ms-1.7b"
348
  )
 
208
  # Generate button
209
  generate_button = gr.Button("🎬 Generate Video", variant="primary")
210
 
 
 
 
211
 
212
  # Advanced settings in an accordion
213
  with gr.Accordion("Advanced Settings", open=False):
 
314
  type="password" # Hide the API key for security
315
  )
316
 
317
+ # Model selection components (moved from left column)
 
318
  model_search_box = gr.Textbox(
319
+ label="Filter Models",
320
  placeholder="Search for a model...",
321
  lines=1
322
  )
 
330
  "THUDM/CogVideoX-5b"
331
  ]
332
 
 
333
  featured_model_radio = gr.Radio(
334
+ label="Select a model below",
335
  choices=models_list,
336
  value="Lightricks/LTX-Video",
337
  interactive=True
338
  )
339
 
 
340
  custom_model_box = gr.Textbox(
341
  value="",
342
+ label="Custom Model",
343
  info="(Optional) Provide a custom Hugging Face model path. Overrides any selected featured model.",
344
  placeholder="damo-vilab/text-to-video-ms-1.7b"
345
  )