Spaces:
Runtime error
Runtime error
feat: Mejorar opciones avanzadas de refinamiento de imágenes en app.py
Browse files
app.py
CHANGED
@@ -22,37 +22,38 @@ with gr.Blocks() as demo:
|
|
22 |
with gr.Row():
|
23 |
with gr.Column():
|
24 |
image = gr.Image(type="filepath")
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
56 |
refine_btn = gr.Button("Refine")
|
57 |
with gr.Column():
|
58 |
output = ImageSlider(label="Before / After")
|
|
|
22 |
with gr.Row():
|
23 |
with gr.Column():
|
24 |
image = gr.Image(type="filepath")
|
25 |
+
with gr.Accordion("Advanced Options", open=False):
|
26 |
+
prompt = gr.Textbox(lines=3, label="Prompt")
|
27 |
+
negative_prompt = gr.Textbox(lines=3, label="Negative Prompt")
|
28 |
+
strength = gr.Slider(
|
29 |
+
label="Strength",
|
30 |
+
minimum=0,
|
31 |
+
maximum=300,
|
32 |
+
step=0.01,
|
33 |
+
value=1
|
34 |
+
)
|
35 |
+
num_inference_steps = gr.Slider(
|
36 |
+
label="Inference steps",
|
37 |
+
minimum=3,
|
38 |
+
maximum=150,
|
39 |
+
step=1,
|
40 |
+
value=25
|
41 |
+
)
|
42 |
+
guidance_scale = gr.Slider(
|
43 |
+
label="Guidance scale",
|
44 |
+
minimum=0.0,
|
45 |
+
maximum=50.0,
|
46 |
+
step=0.1,
|
47 |
+
value=12
|
48 |
+
)
|
49 |
+
seed = gr.Slider(
|
50 |
+
label="Seed",
|
51 |
+
info="-1 denotes a random seed",
|
52 |
+
minimum=-1,
|
53 |
+
maximum=423538377342,
|
54 |
+
step=1,
|
55 |
+
value=-1
|
56 |
+
)
|
57 |
refine_btn = gr.Button("Refine")
|
58 |
with gr.Column():
|
59 |
output = ImageSlider(label="Before / After")
|