Upload meituan-longcat_LongCat-Video_0.txt with huggingface_hub
Browse files
meituan-longcat_LongCat-Video_0.txt
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```CODE:
|
| 2 |
+
from diffusers import DiffusionPipeline
|
| 3 |
+
|
| 4 |
+
pipe = DiffusionPipeline.from_pretrained("meituan-longcat/LongCat-Video")
|
| 5 |
+
|
| 6 |
+
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
| 7 |
+
image = pipe(prompt).images[0]
|
| 8 |
+
```
|
| 9 |
+
|
| 10 |
+
ERROR:
|
| 11 |
+
Traceback (most recent call last):
|
| 12 |
+
File "/tmp/meituan-longcat_LongCat-Video_0fb44pK.py", line 18, in <module>
|
| 13 |
+
pipe = DiffusionPipeline.from_pretrained("meituan-longcat/LongCat-Video")
|
| 14 |
+
File "/tmp/.cache/uv/environments-v2/576bfac7cda76ebc/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 15 |
+
return fn(*args, **kwargs)
|
| 16 |
+
File "/tmp/.cache/uv/environments-v2/576bfac7cda76ebc/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
|
| 17 |
+
cached_folder = cls.download(
|
| 18 |
+
pretrained_model_name_or_path,
|
| 19 |
+
...<14 lines>...
|
| 20 |
+
**kwargs,
|
| 21 |
+
)
|
| 22 |
+
File "/tmp/.cache/uv/environments-v2/576bfac7cda76ebc/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 23 |
+
return fn(*args, **kwargs)
|
| 24 |
+
File "/tmp/.cache/uv/environments-v2/576bfac7cda76ebc/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1526, in download
|
| 25 |
+
if custom_pipeline is None and isinstance(config_dict["_class_name"], (list, tuple)):
|
| 26 |
+
~~~~~~~~~~~^^^^^^^^^^^^^^^
|
| 27 |
+
KeyError: '_class_name'
|