Spaces:
Runtime error
Runtime error
Commit
·
467ad58
1
Parent(s):
cab7e17
Update text_to_video.py
Browse files- text_to_video.py +1 -4
text_to_video.py
CHANGED
|
@@ -3,8 +3,7 @@ import torch
|
|
| 3 |
from transformers.tools.base import Tool, get_default_device
|
| 4 |
from transformers.utils import is_accelerate_available, is_diffusers_available
|
| 5 |
|
| 6 |
-
|
| 7 |
-
from diffusers import DiffusionPipeline
|
| 8 |
|
| 9 |
|
| 10 |
TEXT_TO_VIDEO_DESCRIPTION = (
|
|
@@ -23,8 +22,6 @@ class TextToVideoTool(Tool):
|
|
| 23 |
def __init__(self, device=None, **hub_kwargs) -> None:
|
| 24 |
if not is_accelerate_available():
|
| 25 |
raise ImportError("Accelerate should be installed in order to use tools.")
|
| 26 |
-
if not is_diffusers_available():
|
| 27 |
-
raise ImportError("Diffusers should be installed in order to use the StableDiffusionTool.")
|
| 28 |
|
| 29 |
super().__init__()
|
| 30 |
|
|
|
|
| 3 |
from transformers.tools.base import Tool, get_default_device
|
| 4 |
from transformers.utils import is_accelerate_available, is_diffusers_available
|
| 5 |
|
| 6 |
+
from diffusers import DiffusionPipeline
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
TEXT_TO_VIDEO_DESCRIPTION = (
|
|
|
|
| 22 |
def __init__(self, device=None, **hub_kwargs) -> None:
|
| 23 |
if not is_accelerate_available():
|
| 24 |
raise ImportError("Accelerate should be installed in order to use tools.")
|
|
|
|
|
|
|
| 25 |
|
| 26 |
super().__init__()
|
| 27 |
|