Fabrice-TIERCELIN commited on
Commit
501ec4e
·
verified ·
1 Parent(s): b8cffc5

["16:9", "16:9"],

Browse files
Files changed (1) hide show
  1. app.py +11 -18
app.py CHANGED
@@ -2339,25 +2339,18 @@ with gr.Blocks(title="LTX-2 Video Distilled 🎥🔈") as demo:
2339
  cache_examples=True,
2340
  )
2341
  prompt_debug=gr.Textbox(label="Prompt Debug")
2342
- input_image_debug=gr.Image(type="pil", label="Image Debug")
2343
- end_image_debug=gr.Image(type="pil", label="End Image Debug")
2344
  total_second_length_debug=gr.Slider(label="Duration Debug", minimum=1, maximum=120, value=5, step=0.1)
2345
- resolution_debug = gr.Dropdown([
2346
- ["400,000 px", 400000],
2347
- ["465,920 px", 465920],
2348
- ["495,616 px", 495616],
2349
- ["500,000 px", 500000],
2350
- ["600,000 px", 600000],
2351
- ["700,000 px", 700000],
2352
- ["800,000 px", 800000],
2353
- ["900,000 px", 900000],
2354
- ["1,000,000 px", 1000000],
2355
- ["1,100,000 px", 1100000],
2356
- ["1,200,000 px", 1200000],
2357
- ["1,300,000 px", 1300000],
2358
- ["1,400,000 px", 1400000],
2359
- ["1,500,000 px", 1500000]
2360
- ], value=500000, label="Resolution Debug")
2361
  factor_debug=gr.Slider(label="Factor Debug", minimum=1, maximum=100, value=3.2, step=0.1)
2362
  allocation_time_debug=gr.Slider(label="Allocation Debug", minimum=1, maximum=60 * 20, value=720, step=1)
2363
 
 
2339
  cache_examples=True,
2340
  )
2341
  prompt_debug=gr.Textbox(label="Prompt Debug")
2342
+ input_image_debug=gr.Image(type="filepath", label="Image Debug")
2343
+ input_video_debug=gr.Video(label="Video Debug")
2344
  total_second_length_debug=gr.Slider(label="Duration Debug", minimum=1, maximum=120, value=5, step=0.1)
2345
+ resolution_debug = gr.Dropdown(
2346
+ choices=[
2347
+ ["16:9", "16:9"],
2348
+ ["1:1", "1:1"],
2349
+ ["9:16", "9:16"],
2350
+ ],
2351
+ value="16:9",
2352
+ elem_id="resolution_ui",
2353
+ label="Resolution Debug")
 
 
 
 
 
 
 
2354
  factor_debug=gr.Slider(label="Factor Debug", minimum=1, maximum=100, value=3.2, step=0.1)
2355
  allocation_time_debug=gr.Slider(label="Allocation Debug", minimum=1, maximum=60 * 20, value=720, step=1)
2356