Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,12 @@ from PIL import Image
|
|
9 |
import json
|
10 |
|
11 |
# Project by Nymbo
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
14 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
|
|
9 |
import json
|
10 |
|
11 |
# Project by Nymbo
|
12 |
+
from diffusers import DiffusionPipeline
|
13 |
+
|
14 |
+
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt")
|
15 |
+
|
16 |
+
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
17 |
+
image = pipe(prompt).images[0]
|
18 |
|
19 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
20 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|