azhan77168 commited on
Commit
e1db152
·
verified ·
1 Parent(s): e1afb2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -339,17 +339,15 @@ css="""
339
  """
340
 
341
  with gr.Blocks(css=css) as demo:
342
- gr.Markdown("# LTX Video 0.9.7 Distilled")
343
- gr.Markdown("Fast high quality video generation. [Model](https://huggingface.co/Lightricks/LTX-Video/blob/main/ltxv-13b-0.9.7-distilled.safetensors) [GitHub](https://github.com/Lightricks/LTX-Video) [Diffusers](https://huggingface.co/Lightricks/LTX-Video-0.9.7-distilled#diffusers-🧨)")
344
-
345
  with gr.Row():
346
  with gr.Column():
347
  with gr.Tab("image-to-video") as image_tab:
348
  video_i_hidden = gr.Textbox(label="video_i", visible=False, value=None)
349
  image_i2v = gr.Image(label="Input Image", type="filepath", sources=["upload", "webcam", "clipboard"])
350
- i2v_prompt = gr.Textbox(label="Prompt", value="The creature from the image starts to move", lines=3)
351
  i2v_button = gr.Button("Generate Image-to-Video", variant="primary")
352
- with gr.Tab("text-to-video") as text_tab:
353
  image_n_hidden = gr.Textbox(label="image_n", visible=False, value=None)
354
  video_n_hidden = gr.Textbox(label="video_n", visible=False, value=None)
355
  t2v_prompt = gr.Textbox(label="Prompt", value="A majestic dragon flying over a medieval castle", lines=3)
@@ -365,7 +363,7 @@ with gr.Blocks(css=css) as demo:
365
  label="Video Duration (seconds)",
366
  minimum=0.3,
367
  maximum=8.5,
368
- value=2,
369
  step=0.1,
370
  info=f"Target video duration (0.3s to 8.5s)"
371
  )
 
339
  """
340
 
341
  with gr.Blocks(css=css) as demo:
342
+
 
 
343
  with gr.Row():
344
  with gr.Column():
345
  with gr.Tab("image-to-video") as image_tab:
346
  video_i_hidden = gr.Textbox(label="video_i", visible=False, value=None)
347
  image_i2v = gr.Image(label="Input Image", type="filepath", sources=["upload", "webcam", "clipboard"])
348
+ i2v_prompt = gr.Textbox(label="Prompt", value="A very beautiful girl came over with a smile, gently hugged the boy, and the romantic atmosphere of the couple filled the air.", lines=3)
349
  i2v_button = gr.Button("Generate Image-to-Video", variant="primary")
350
+ with gr.Tab("text-to-video", visible=False) as text_tab:
351
  image_n_hidden = gr.Textbox(label="image_n", visible=False, value=None)
352
  video_n_hidden = gr.Textbox(label="video_n", visible=False, value=None)
353
  t2v_prompt = gr.Textbox(label="Prompt", value="A majestic dragon flying over a medieval castle", lines=3)
 
363
  label="Video Duration (seconds)",
364
  minimum=0.3,
365
  maximum=8.5,
366
+ value=5,
367
  step=0.1,
368
  info=f"Target video duration (0.3s to 8.5s)"
369
  )