Instructions to use codingggasdfasf/video-animator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use codingggasdfasf/video-animator with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("codingggasdfasf/video-animator", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
root commited on
Commit ·
bf04385
1
Parent(s): ca82116
fix firebase upload
Browse files- __pycache__/handler.cpython-310.pyc +0 -0
- handler.py +1 -1
__pycache__/handler.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/handler.cpython-310.pyc and b/__pycache__/handler.cpython-310.pyc differ
|
|
|
handler.py
CHANGED
|
@@ -419,7 +419,7 @@ class EndpointHandler():
|
|
| 419 |
# Upload video to Firebase Storage
|
| 420 |
bucket = storage.bucket()
|
| 421 |
blob = bucket.blob(f"videos/{firebase_doc_id}/swapped_face_output.mp4")
|
| 422 |
-
blob.upload_from_filename(
|
| 423 |
|
| 424 |
# Make the file publicly accessible
|
| 425 |
blob.make_public()
|
|
|
|
| 419 |
# Upload video to Firebase Storage
|
| 420 |
bucket = storage.bucket()
|
| 421 |
blob = bucket.blob(f"videos/{firebase_doc_id}/swapped_face_output.mp4")
|
| 422 |
+
blob.upload_from_filename(swapped_face_video_path)
|
| 423 |
|
| 424 |
# Make the file publicly accessible
|
| 425 |
blob.make_public()
|