Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,8 +2,8 @@ import gradio as gr
|
|
| 2 |
from diffusers import StableDiffusionPipeline
|
| 3 |
import torch
|
| 4 |
|
| 5 |
-
#
|
| 6 |
-
model_id = "lllyasviel/
|
| 7 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 8 |
|
| 9 |
def generate_image(prompt):
|
|
|
|
| 2 |
from diffusers import StableDiffusionPipeline
|
| 3 |
import torch
|
| 4 |
|
| 5 |
+
# Используем модель lllyasviel/flux1-dev-bnb-nf4
|
| 6 |
+
model_id = "lllyasviel/flux1-dev-bnb-nf4"
|
| 7 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 8 |
|
| 9 |
def generate_image(prompt):
|