Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,3 @@
|
|
1 |
-
import
|
2 |
-
from diffusers import FluxPipeline
|
3 |
|
4 |
-
|
5 |
-
pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
|
6 |
-
|
7 |
-
prompt = "A cat holding a sign that says hello world"
|
8 |
-
image = pipe(
|
9 |
-
prompt,
|
10 |
-
guidance_scale=0.0,
|
11 |
-
num_inference_steps=4,
|
12 |
-
max_sequence_length=256,
|
13 |
-
generator=torch.Generator("cpu").manual_seed(0)
|
14 |
-
).images[0]
|
15 |
-
image.save("flux-schnell.png")
|
|
|
1 |
+
import gradio as gr
|
|
|
2 |
|
3 |
+
gr.load("models/black-forest-labs/FLUX.1-schnell").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|