Upload Wan-AI_Wan2.2-Animate-14B_0.py with huggingface_hub
Browse files
Wan-AI_Wan2.2-Animate-14B_0.py
CHANGED
|
@@ -11,7 +11,12 @@
|
|
| 11 |
# ///
|
| 12 |
|
| 13 |
try:
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
with open('Wan-AI_Wan2.2-Animate-14B_0.txt', 'w', encoding='utf-8') as f:
|
| 16 |
f.write('Everything was good in Wan-AI_Wan2.2-Animate-14B_0.txt')
|
| 17 |
except Exception as e:
|
|
@@ -26,7 +31,12 @@ except Exception as e:
|
|
| 26 |
with open('Wan-AI_Wan2.2-Animate-14B_0.txt', 'a', encoding='utf-8') as f:
|
| 27 |
import traceback
|
| 28 |
f.write('''```CODE:
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
```
|
| 31 |
|
| 32 |
ERROR:
|
|
|
|
| 11 |
# ///
|
| 12 |
|
| 13 |
try:
|
| 14 |
+
from diffusers import DiffusionPipeline
|
| 15 |
+
|
| 16 |
+
pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.2-Animate-14B")
|
| 17 |
+
|
| 18 |
+
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
| 19 |
+
image = pipe(prompt).images[0]
|
| 20 |
with open('Wan-AI_Wan2.2-Animate-14B_0.txt', 'w', encoding='utf-8') as f:
|
| 21 |
f.write('Everything was good in Wan-AI_Wan2.2-Animate-14B_0.txt')
|
| 22 |
except Exception as e:
|
|
|
|
| 31 |
with open('Wan-AI_Wan2.2-Animate-14B_0.txt', 'a', encoding='utf-8') as f:
|
| 32 |
import traceback
|
| 33 |
f.write('''```CODE:
|
| 34 |
+
from diffusers import DiffusionPipeline
|
| 35 |
+
|
| 36 |
+
pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.2-Animate-14B")
|
| 37 |
+
|
| 38 |
+
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
| 39 |
+
image = pipe(prompt).images[0]
|
| 40 |
```
|
| 41 |
|
| 42 |
ERROR:
|