Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -525,71 +525,6 @@ with gr.Blocks(title="Bytedance Seedance Video Free", theme=gr.themes.Soft()) as
|
|
525 |
interactive=False
|
526 |
)
|
527 |
|
528 |
-
# Usage instructions
|
529 |
-
with gr.Accordion("📖 How to Use", open=False):
|
530 |
-
gr.Markdown("""
|
531 |
-
### Installation
|
532 |
-
|
533 |
-
1. **Install required packages**:
|
534 |
-
```bash
|
535 |
-
pip install gradio requests pillow
|
536 |
-
```
|
537 |
-
|
538 |
-
2. **For watermark support (optional)**:
|
539 |
-
```bash
|
540 |
-
pip install opencv-python
|
541 |
-
```
|
542 |
-
|
543 |
-
3. **Set environment variables**:
|
544 |
-
```bash
|
545 |
-
export WS_API_KEY_T2V="your-t2v-api-key"
|
546 |
-
export WS_API_KEY_I2V="your-i2v-api-key"
|
547 |
-
```
|
548 |
-
|
549 |
-
4. **Run**:
|
550 |
-
```bash
|
551 |
-
python app.py
|
552 |
-
```
|
553 |
-
|
554 |
-
### Features
|
555 |
-
|
556 |
-
- **Text to Video**: Generate video from text description with aspect ratio selection
|
557 |
-
- **Image to Video**: Transform image into animated video
|
558 |
-
- Option 1: Provide direct image URL (recommended)
|
559 |
-
- Option 2: Upload image file (converted to data URL - may not work)
|
560 |
-
- **Aspect Ratios**: Available for Text to Video only
|
561 |
-
- **Seed Value**: Use -1 for random or set specific value for reproducible results
|
562 |
-
- **Watermark**: Automatically adds "ginigen.com" watermark (requires opencv-python)
|
563 |
-
|
564 |
-
### Image to Video Tips
|
565 |
-
|
566 |
-
**Recommended: Use Image URLs**
|
567 |
-
1. Upload your image to [imgur.com](https://imgur.com) (easiest, no account needed)
|
568 |
-
2. After upload, right-click image → "Copy image address"
|
569 |
-
3. Paste URL in the Image URL field
|
570 |
-
|
571 |
-
**Image Upload Limitations:**
|
572 |
-
- Uploaded images are compressed to max 2MB
|
573 |
-
- Large images (>30MB) may still fail after compression
|
574 |
-
- If upload fails, use an image hosting service instead
|
575 |
-
|
576 |
-
**Free Image Hosting Services:**
|
577 |
-
- [imgur.com](https://imgur.com) - No account needed, easiest
|
578 |
-
- [imgbb.com](https://imgbb.com) - Simple interface
|
579 |
-
- [postimages.org](https://postimages.org) - Direct links
|
580 |
-
|
581 |
-
### API Information
|
582 |
-
|
583 |
-
- **Models**: ByteDance Seedance v1
|
584 |
-
- **Resolution**: 480p
|
585 |
-
|
586 |
-
### Prompt Writing Tips
|
587 |
-
|
588 |
-
- Use specific and detailed descriptions
|
589 |
-
- Specify camera movements (e.g., zoom in, pan left, tracking shot)
|
590 |
-
- Describe lighting and atmosphere (e.g., golden hour, dramatic lighting)
|
591 |
-
- Indicate movement speed (e.g., slowly, rapidly, gently)
|
592 |
-
""")
|
593 |
|
594 |
# Examples
|
595 |
gr.Examples(
|
@@ -597,7 +532,6 @@ with gr.Blocks(title="Bytedance Seedance Video Free", theme=gr.themes.Soft()) as
|
|
597 |
["Text to Video", "A cat walking gracefully across a sunlit room", "", None, "16:9", -1],
|
598 |
["Text to Video", "A serene lake at sunrise with mist rolling over the water. Camera slowly pans across the landscape as birds fly overhead.", "", None, "16:9", 42],
|
599 |
["Text to Video", "Urban street scene at night with neon lights reflecting on wet pavement. People walking with umbrellas, camera tracking forward.", "", None, "9:16", 123],
|
600 |
-
["Image to Video", "In a wide shot, the camera slowly zooms in while maintaining focus. Natural movement brings the scene to life.", "https://d2g64w682n9w0w.cloudfront.net/media/images/1750659000869310688_vGUb740X.jpg", None, "16:9", -1],
|
601 |
],
|
602 |
inputs=[mode, prompt, image_url_input, image_file_input, aspect_ratio, seed],
|
603 |
label="Example Prompts"
|
|
|
525 |
interactive=False
|
526 |
)
|
527 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
|
529 |
# Examples
|
530 |
gr.Examples(
|
|
|
532 |
["Text to Video", "A cat walking gracefully across a sunlit room", "", None, "16:9", -1],
|
533 |
["Text to Video", "A serene lake at sunrise with mist rolling over the water. Camera slowly pans across the landscape as birds fly overhead.", "", None, "16:9", 42],
|
534 |
["Text to Video", "Urban street scene at night with neon lights reflecting on wet pavement. People walking with umbrellas, camera tracking forward.", "", None, "9:16", 123],
|
|
|
535 |
],
|
536 |
inputs=[mode, prompt, image_url_input, image_file_input, aspect_ratio, seed],
|
537 |
label="Example Prompts"
|