Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -209,37 +209,8 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme") as demo:
|
|
209 |
generate_button = gr.Button("🎬 Generate Video", variant="primary")
|
210 |
|
211 |
with gr.Column(scale=1):
|
212 |
-
#
|
213 |
-
|
214 |
-
label="Filter Models",
|
215 |
-
placeholder="Search for a model...",
|
216 |
-
lines=1
|
217 |
-
)
|
218 |
-
|
219 |
-
models_list = [
|
220 |
-
"Lightricks/LTX-Video",
|
221 |
-
"Wan-AI/Wan2.1-T2V-14B",
|
222 |
-
"tencent/HunyuanVideo",
|
223 |
-
"Wan-AI/Wan2.1-T2V-1.3B",
|
224 |
-
"genmo/mochi-1-preview",
|
225 |
-
"THUDM/CogVideoX-5b"
|
226 |
-
]
|
227 |
-
|
228 |
-
featured_model_radio = gr.Radio(
|
229 |
-
label="Select a model below",
|
230 |
-
choices=models_list,
|
231 |
-
value="Lightricks/LTX-Video",
|
232 |
-
interactive=True
|
233 |
-
)
|
234 |
-
|
235 |
-
custom_model_box = gr.Textbox(
|
236 |
-
value="",
|
237 |
-
label="Custom Model",
|
238 |
-
info="(Optional) Provide a custom Hugging Face model path. Overrides any selected featured model.",
|
239 |
-
placeholder="damo-vilab/text-to-video-ms-1.7b"
|
240 |
-
)
|
241 |
-
|
242 |
-
gr.Markdown("[See all available models](https://huggingface.co/models?inference_provider=all&pipeline_tag=text-to-video&sort=trending)")
|
243 |
|
244 |
# Advanced settings in an accordion
|
245 |
with gr.Accordion("Advanced Settings", open=False):
|
@@ -345,6 +316,38 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme") as demo:
|
|
345 |
placeholder="Enter your provider API token",
|
346 |
type="password" # Hide the API key for security
|
347 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
348 |
|
349 |
# Set up the generation click event
|
350 |
generate_button.click(
|
|
|
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):
|
|
|
316 |
placeholder="Enter your provider API token",
|
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 |
+
)
|
326 |
+
|
327 |
+
models_list = [
|
328 |
+
"Lightricks/LTX-Video",
|
329 |
+
"Wan-AI/Wan2.1-T2V-14B",
|
330 |
+
"tencent/HunyuanVideo",
|
331 |
+
"Wan-AI/Wan2.1-T2V-1.3B",
|
332 |
+
"genmo/mochi-1-preview",
|
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 |
+
)
|
349 |
+
|
350 |
+
gr.Markdown("[See all available models](https://huggingface.co/models?inference_provider=all&pipeline_tag=text-to-video&sort=trending)")
|
351 |
|
352 |
# Set up the generation click event
|
353 |
generate_button.click(
|