Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,9 @@ from diffusers import FluxPipeline
|
|
3 |
import gradio as gr
|
4 |
|
5 |
def generate_flux_image(
|
6 |
-
prompt,
|
7 |
-
width=512,
|
8 |
-
height=512,
|
9 |
num_inference_steps=50,
|
10 |
guidance_scale=7.5,
|
11 |
seed=None
|
@@ -18,7 +18,7 @@ def generate_flux_image(
|
|
18 |
|
19 |
# Pipeline laden
|
20 |
pipeline = FluxPipeline.from_pretrained(
|
21 |
-
"
|
22 |
torch_dtype=torch.float16
|
23 |
)
|
24 |
|
@@ -55,7 +55,7 @@ def create_gradio_interface():
|
|
55 |
output_image = gr.Image(label="Generiertes Bild")
|
56 |
|
57 |
generate_btn.click(
|
58 |
-
fn=generate_flux_image,
|
59 |
inputs=[prompt, width, height, steps, guidance, seed],
|
60 |
outputs=output_image
|
61 |
)
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
def generate_flux_image(
|
6 |
+
prompt,
|
7 |
+
width=512,
|
8 |
+
height=512,
|
9 |
num_inference_steps=50,
|
10 |
guidance_scale=7.5,
|
11 |
seed=None
|
|
|
18 |
|
19 |
# Pipeline laden
|
20 |
pipeline = FluxPipeline.from_pretrained(
|
21 |
+
"models/enhanceaiteam/Flux-uncensored", # Korrigierter Pfad
|
22 |
torch_dtype=torch.float16
|
23 |
)
|
24 |
|
|
|
55 |
output_image = gr.Image(label="Generiertes Bild")
|
56 |
|
57 |
generate_btn.click(
|
58 |
+
fn=generate_flux_image,
|
59 |
inputs=[prompt, width, height, steps, guidance, seed],
|
60 |
outputs=output_image
|
61 |
)
|