K00B404 commited on
Commit
60f3a05
β€’
1 Parent(s): 41cb6d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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")