26A1 commited on
Commit
3bc0201
·
verified ·
1 Parent(s): a966e6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -30,11 +30,11 @@ ASPECT_RATIOS = {
30
  "4:3 (768x576)": (768, 576),
31
  "1:1 (640x640)": (640, 640),
32
 
33
- "9:21 (496x1184)": (496, 1184),
34
  "9:21 (416x976)": (416, 976),
35
  "9:21 (288x656)": (288, 656),
36
 
37
- "9:16 (576x1024)": (576, 1024),
38
  "9:16 (480x848)": (480, 848),
39
  "9:16 (320x576)": (320, 576),
40
 
@@ -195,8 +195,8 @@ with gr.Blocks(theme=gr.Theme.from_hub("26A1/_")) as demo:
195
  with gr.Column():
196
  prompt_input = gr.Textbox(label="Prompt", value=default_prompt_t2v, lines=3)
197
  aspect_ratio_input = gr.Dropdown(choices=list(ASPECT_RATIOS.keys()), value=DEFAULT_RATIO, label="Aspect ratio")
198
- duration_seconds_input = gr.Slider(minimum=MIN_DURATION, maximum=MAX_DURATION, step=0.1, value=6.6, label="Duration (seconds)", info=f"Clamped to model's {MIN_FRAMES_MODEL}-{MAX_FRAMES_MODEL} frames at {FIXED_FPS}fps.")
199
- GPU_time_input = gr.Slider(value=0,minimum=0,maximum=120,step=1,label="GPU time")
200
 
201
  with gr.Accordion("Advanced Settings", open=False):
202
  negative_prompt_input = gr.Textbox(label="Negative Prompt", value=default_negative_prompt, lines=3)
 
30
  "4:3 (768x576)": (768, 576),
31
  "1:1 (640x640)": (640, 640),
32
 
33
+ "9:21 (624x1456)": (624, 1456),
34
  "9:21 (416x976)": (416, 976),
35
  "9:21 (288x656)": (288, 656),
36
 
37
+ "9:16 (720x1280)": (720, 1280),
38
  "9:16 (480x848)": (480, 848),
39
  "9:16 (320x576)": (320, 576),
40
 
 
195
  with gr.Column():
196
  prompt_input = gr.Textbox(label="Prompt", value=default_prompt_t2v, lines=3)
197
  aspect_ratio_input = gr.Dropdown(choices=list(ASPECT_RATIOS.keys()), value=DEFAULT_RATIO, label="Aspect ratio")
198
+ duration_seconds_input = gr.Slider(minimum=MIN_DURATION, maximum=MAX_DURATION, step=0.1, value=6, label="Duration (seconds)", info=f"Clamped to model's {MIN_FRAMES_MODEL}-{MAX_FRAMES_MODEL} frames at {FIXED_FPS}fps.")
199
+ GPU_time_input = gr.Slider(value=120,minimum=0,maximum=120,step=1,label="GPU time",info="0:Auto")
200
 
201
  with gr.Accordion("Advanced Settings", open=False):
202
  negative_prompt_input = gr.Textbox(label="Negative Prompt", value=default_negative_prompt, lines=3)