|
|
--- |
|
|
license: mit |
|
|
--- |
|
|
# Video |
|
|
|
|
|
## Overview |
|
|
**Video** is a language model designed to assist content creators by generating concise video scripts for "Top 5" topics. These scripts are optimized for videos under one minute, making them ideal for platforms like TikTok, YouTube Shorts, and Instagram Reels. |
|
|
|
|
|
## Intended Use |
|
|
- **Primary Purpose**: To create short video scripts for 'Top 5' topics, such as 'Top 5 most expensive cars' or 'Top 5 rarest animals.' |
|
|
- **Recommended Use Cases**: Designed for content creators to generate engaging short video scripts under one minute. |
|
|
- **Limitations**: The model's suggestions may require fact-checking to ensure accuracy and relevance. |
|
|
|
|
|
## How to Use |
|
|
To use the model, integrate it into your Python script as shown below: |
|
|
|
|
|
```python |
|
|
from transformers import AutoModelForCausalLM, AutoTokenizer |
|
|
|
|
|
# Load the model |
|
|
tokenizer = AutoTokenizer.from_pretrained("CH0o0k/video") |
|
|
model = AutoModelForCausalLM.from_pretrained("CH0o0k/video") |
|
|
|
|
|
# Generate a script |
|
|
prompt = "Top 5 most expensive cars:" |
|
|
inputs = tokenizer(prompt, return_tensors="pt") |
|
|
outputs = model.generate(inputs["input_ids"], max_length=100) |
|
|
|
|
|
# Print the result |
|
|
print(tokenizer.decode(outputs[0], skip_special_tokens=True)) |
|
|
``` |
|
|
|
|
|
## License |
|
|
This model is licensed under the MIT License. |
|
|
|
|
|
## Contact |
|
|
For questions or feedback, please reach out via [Hugging Face](https://huggingface.co/CH0o0k). |