timothyngo commited on
Commit
49e3641
Β·
1 Parent(s): 1ab16c7

Reorder examples and add recommended

Browse files
app.py CHANGED
@@ -147,7 +147,7 @@ if examples_dir.exists():
147
  for image_path in sorted(examples_dir.iterdir()):
148
  if not image_path.is_file():
149
  continue
150
- examples.append([image_path.as_posix(), image_path.stem.replace("_", " ")])
151
 
152
  if __name__ == "__main__":
153
  with gr.Blocks() as demo:
@@ -228,7 +228,7 @@ if __name__ == "__main__":
228
  )
229
  gr.Button(
230
  value="Weights",
231
- link="https://huggingface.co/KempnerInstituteAI/LVP",
232
  icon="https://simpleicons.org/icons/huggingface.svg",
233
  elem_classes=["header-button"],
234
  size="md",
@@ -257,17 +257,17 @@ if __name__ == "__main__":
257
  step=1,
258
  )
259
  lang_guidance_slider = gr.Slider(
260
- label="Language Guidance",
261
  minimum=0,
262
  maximum=5,
263
- value=2.0,
264
  step=0.1,
265
  )
266
  hist_guidance_slider = gr.Slider(
267
- label="History Guidance",
268
  minimum=0,
269
  maximum=5,
270
- value=2.0,
271
  step=0.1,
272
  )
273
  run_button = gr.Button("Generate Video")
 
147
  for image_path in sorted(examples_dir.iterdir()):
148
  if not image_path.is_file():
149
  continue
150
+ examples.append([image_path.as_posix(), image_path.stem[2:].replace("_", " ")])
151
 
152
  if __name__ == "__main__":
153
  with gr.Blocks() as demo:
 
228
  )
229
  gr.Button(
230
  value="Weights",
231
+ link="https://huggingface.co/large-video-planner/LVP",
232
  icon="https://simpleicons.org/icons/huggingface.svg",
233
  elem_classes=["header-button"],
234
  size="md",
 
257
  step=1,
258
  )
259
  lang_guidance_slider = gr.Slider(
260
+ label="Language Guidance (recommended 1.5-2.5)",
261
  minimum=0,
262
  maximum=5,
263
+ value=2.5,
264
  step=0.1,
265
  )
266
  hist_guidance_slider = gr.Slider(
267
+ label="History Guidance (recommended 1.0-2.0)",
268
  minimum=0,
269
  maximum=5,
270
+ value=1.5,
271
  step=0.1,
272
  )
273
  run_button = gr.Button("Generate Video")
examples/{a_left_hand_reaches_for_the_faucet_handle_on_the_left_to_turn_on_the_water.jpg β†’ 1_a_left_hand_reaches_for_the_faucet_handle_on_the_left_to_turn_on_the_water.jpg} RENAMED
File without changes
examples/{A_left_hand_gently_pets_on_the_torso_of_a_black_and_white_cat.jpg β†’ 2_A_left_hand_gently_pets_on_the_torso_of_a_black_and_white_cat.jpg} RENAMED
File without changes
examples/{A_right_hand_holding_a_silver_spoon_places_it_into_the_black_mug.jpg β†’ 3_A_right_hand_holding_a_silver_spoon_places_it_into_the_black_mug.jpg} RENAMED
File without changes
examples/{grab_the_purple_marker_pen_from_the_tray.jpg β†’ 4_grab_the_purple_marker_pen_from_the_tray.jpg} RENAMED
File without changes