Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,7 @@ pipe.controlnet.to(torch.bfloat16)
|
|
29 |
|
30 |
|
31 |
MARKDOWN = """
|
32 |
-
# FLUX
|
33 |
-
Model by alimama-creative
|
34 |
"""
|
35 |
|
36 |
@spaces.GPU()
|
@@ -78,7 +77,10 @@ with gr.Blocks() as demo:
|
|
78 |
image_mode='RGB',
|
79 |
layers=False,
|
80 |
brush=gr.Brush(colors=["#FFFFFF"], color_mode="fixed"))
|
81 |
-
|
|
|
|
|
|
|
82 |
prompt = gr.Textbox(lines=2, placeholder="Enter prompt here...")
|
83 |
negative_prompt = gr.Textbox(lines=2, placeholder="Enter negative_prompt here...")
|
84 |
controlnet_conditioning_scale = gr.Slider(minimum=0, step=0.01, maximum=1, value=0.9, label="controlnet_conditioning_scale")
|
@@ -87,11 +89,6 @@ with gr.Blocks() as demo:
|
|
87 |
num_inference_steps = gr.Slider(minimum=1, step=1, maximum=30, value=24, label="num_inference_steps")
|
88 |
true_guidance_scale = gr.Slider(minimum=1, step=1, maximum=10, value=3.5, label="true_guidance_scale")
|
89 |
|
90 |
-
|
91 |
-
|
92 |
-
submit_button_component = gr.Button(
|
93 |
-
value='Submit', variant='primary', scale=0)
|
94 |
-
|
95 |
with gr.Column():
|
96 |
output_image_component = gr.Image(
|
97 |
type='pil', image_mode='RGB', label='Generated image', format="png")
|
|
|
29 |
|
30 |
|
31 |
MARKDOWN = """
|
32 |
+
# FLUX-Inpaint-GPU
|
|
|
33 |
"""
|
34 |
|
35 |
@spaces.GPU()
|
|
|
77 |
image_mode='RGB',
|
78 |
layers=False,
|
79 |
brush=gr.Brush(colors=["#FFFFFF"], color_mode="fixed"))
|
80 |
+
|
81 |
+
submit_button_component = gr.Button(
|
82 |
+
value='Submit', variant='primary', scale=0)
|
83 |
+
|
84 |
prompt = gr.Textbox(lines=2, placeholder="Enter prompt here...")
|
85 |
negative_prompt = gr.Textbox(lines=2, placeholder="Enter negative_prompt here...")
|
86 |
controlnet_conditioning_scale = gr.Slider(minimum=0, step=0.01, maximum=1, value=0.9, label="controlnet_conditioning_scale")
|
|
|
89 |
num_inference_steps = gr.Slider(minimum=1, step=1, maximum=30, value=24, label="num_inference_steps")
|
90 |
true_guidance_scale = gr.Slider(minimum=1, step=1, maximum=10, value=3.5, label="true_guidance_scale")
|
91 |
|
|
|
|
|
|
|
|
|
|
|
92 |
with gr.Column():
|
93 |
output_image_component = gr.Image(
|
94 |
type='pil', image_mode='RGB', label='Generated image', format="png")
|