benibraz commited on
Commit
9d5309a
1 Parent(s): 259ae21

Refine negative prompt labels and update example video assets

Browse files
Files changed (1) hide show
  1. app.py +14 -10
app.py CHANGED
@@ -407,7 +407,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
407
  lines=5,
408
  )
409
  txt2vid_negative_prompt = gr.Textbox(
410
- label="Step 2: Enter Negative Prompt (Optional)",
411
  placeholder="Describe what you don't want in the video...",
412
  value="low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
413
  lines=2,
@@ -421,27 +421,29 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
421
 
422
  txt2vid_advanced = create_advanced_options()
423
  txt2vid_generate = gr.Button(
424
- "Step 5: Generate Video", variant="primary", size="lg"
 
 
425
  )
426
 
427
  with gr.Column():
428
- txt2vid_output = gr.Video(label="Step 6: Generated Output")
429
 
430
  with gr.Row():
431
  gr.Examples(
432
  examples=[
433
  [
434
- "A young woman in a traditional Mongolian dress is peeking through a sheer white curtain, her face showing a mix of curiosity and apprehension. The woman has long black hair styled in two braids, adorned with white beads, and her eyes are wide with a hint of surprise. Her dress is a vibrant blue with intricate gold embroidery, and she wears a matching headband with a similar design. The background is a simple white curtain, which creates a sense of mystery and intrigue.ith long brown hair and light skin smiles at another woman with long blonde hair. The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek. The camera angle is a close-up, focused on the woman with brown hair’s face. The lighting is warm and natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage",
435
  "low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
436
- "assets/t2v_2.mp4",
437
  ],
438
  [
439
- "A young man with blond hair wearing a yellow jacket stands in a forest and looks around. He has light skin and his hair is styled with a middle part. He looks to the left and then to the right, his gaze lingering in each direction. The camera angle is low, looking up at the man, and remains stationary throughout the video. The background is slightly out of focus, with green trees and the sun shining brightly behind the man. The lighting is natural and warm, with the sun creating a lens flare that moves across the man’s face. The scene is captured in real-life footage.",
440
  "low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
441
- "assets/t2v_1.mp4",
442
  ],
443
  [
444
- "A cyclist races along a winding mountain road. Clad in aerodynamic gear, he pedals intensely, sweat glistening on his brow. The camera alternates between close-ups of his determined expression and wide shots of the breathtaking landscape. Pine trees blur past, and the sky is a crisp blue. The scene is invigorating and competitive.",
445
  "low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
446
  "assets/t2v_0.mp4",
447
  ],
@@ -466,7 +468,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
466
  lines=5,
467
  )
468
  img2vid_negative_prompt = gr.Textbox(
469
- label="Step 3: Enter Negative Prompt (Optional)",
470
  placeholder="Describe what you don't want in the video...",
471
  value="low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
472
  lines=2,
@@ -484,7 +486,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
484
  )
485
 
486
  with gr.Column():
487
- img2vid_output = gr.Video(label="Step 7: Generated Output")
488
 
489
  with gr.Row():
490
  gr.Examples(
@@ -520,6 +522,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
520
  fn=generate_video_from_text,
521
  inputs=[txt2vid_prompt, txt2vid_negative_prompt, *txt2vid_advanced],
522
  outputs=txt2vid_output,
 
523
  )
524
 
525
  img2vid_preset.change(
@@ -535,6 +538,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
535
  *img2vid_advanced,
536
  ],
537
  outputs=img2vid_output,
 
538
  )
539
 
540
  iface.launch(share=True)
 
407
  lines=5,
408
  )
409
  txt2vid_negative_prompt = gr.Textbox(
410
+ label="Step 2: Enter Negative Prompt",
411
  placeholder="Describe what you don't want in the video...",
412
  value="low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
413
  lines=2,
 
421
 
422
  txt2vid_advanced = create_advanced_options()
423
  txt2vid_generate = gr.Button(
424
+ "Step 5: Generate Video",
425
+ variant="primary",
426
+ size="lg",
427
  )
428
 
429
  with gr.Column():
430
+ txt2vid_output = gr.Video(label="Generated Output")
431
 
432
  with gr.Row():
433
  gr.Examples(
434
  examples=[
435
  [
436
+ "A woman stirs a pot of boiling water on a white electric burner. Her hands, with purple nail polish, hold a wooden spoon and move it in a circular motion within a white pot filled with bubbling water. The pot sits on a white electric burner with black buttons and a digital display. The burner is positioned on a white countertop with a red and white checkered cloth partially visible in the bottom right corner. The camera angle is a direct overhead shot, remaining stationary throughout the scene. The lighting is bright and even, illuminating the scene with a neutral white light. The scene is real-life footage.",
437
  "low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
438
+ "assets/i2v_2.mp4",
439
  ],
440
  [
441
+ "A woman in a long, flowing dress stands in a field, her back to the camera, gazing towards the horizon; her hair is long and light, cascading down her back; she stands beneath the sprawling branches of a large oak tree; to her left, a classic American car is parked on the dry grass; in the distance, a wrecked car lies on its side; the sky above is a dramatic canvas of bright white clouds against a darker sky; the entire image is in black and white, emphasizing the contrast of light and shadow. The woman is walking slowly towards the car.",
442
  "low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
443
+ "assets/i2v_0.mp4",
444
  ],
445
  [
446
+ "A pair of hands shapes a piece of clay on a pottery wheel, gradually forming a cone shape. The hands, belonging to a person out of frame, are covered in clay and gently press a ball of clay onto the center of a spinning pottery wheel. The hands move in a circular motion, gradually forming a cone shape at the top of the clay. The camera is positioned directly above the pottery wheel, providing a bird’s-eye view of the clay being shaped. The lighting is bright and even, illuminating the clay and the hands working on it. The scene is captured in real-life footage.",
447
  "low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
448
  "assets/t2v_0.mp4",
449
  ],
 
468
  lines=5,
469
  )
470
  img2vid_negative_prompt = gr.Textbox(
471
+ label="Step 3: Enter Negative Prompt",
472
  placeholder="Describe what you don't want in the video...",
473
  value="low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
474
  lines=2,
 
486
  )
487
 
488
  with gr.Column():
489
+ img2vid_output = gr.Video(label="Generated Output")
490
 
491
  with gr.Row():
492
  gr.Examples(
 
522
  fn=generate_video_from_text,
523
  inputs=[txt2vid_prompt, txt2vid_negative_prompt, *txt2vid_advanced],
524
  outputs=txt2vid_output,
525
+ concurrency_limit=1,
526
  )
527
 
528
  img2vid_preset.change(
 
538
  *img2vid_advanced,
539
  ],
540
  outputs=img2vid_output,
541
+ concurrency_limit=1,
542
  )
543
 
544
  iface.launch(share=True)