Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -75,18 +75,17 @@ def generate_fashion(prompt, mode, cfg_scale, steps, randomize_seed, seed, width
|
|
75 |
|
76 |
with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as app:
|
77 |
gr.Markdown("# π Fashion AI Studio")
|
78 |
-
gr.Markdown("AIλ₯Ό μ¬μ©νμ¬ ν¨μ
λͺ¨λΈκ³Ό μλ₯λ₯Ό μμ±ν΄λ³΄μΈμ")
|
79 |
|
80 |
with gr.Column():
|
81 |
mode = gr.Radio(
|
82 |
-
choices=["
|
83 |
-
label="
|
84 |
-
value="
|
85 |
)
|
86 |
|
87 |
prompt = gr.TextArea(
|
88 |
-
label="βοΈ
|
89 |
-
placeholder="
|
90 |
lines=3
|
91 |
)
|
92 |
|
@@ -95,20 +94,20 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as app:
|
|
95 |
gr.Examples(
|
96 |
examples=model_examples,
|
97 |
inputs=prompt,
|
98 |
-
label="
|
99 |
)
|
100 |
|
101 |
with gr.Column(visible=False) as clothes_examples_container:
|
102 |
gr.Examples(
|
103 |
examples=clothes_examples,
|
104 |
inputs=prompt,
|
105 |
-
label="
|
106 |
)
|
107 |
|
108 |
-
result = gr.Image(label="
|
109 |
-
generate_button = gr.Button("π
|
110 |
|
111 |
-
with gr.Accordion("π¨
|
112 |
with gr.Row():
|
113 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7.0)
|
114 |
steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=30)
|
@@ -124,8 +123,8 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as app:
|
|
124 |
|
125 |
def update_visibility(mode):
|
126 |
return (
|
127 |
-
gr.update(visible=(mode == "
|
128 |
-
gr.update(visible=(mode == "
|
129 |
)
|
130 |
|
131 |
mode.change(
|
|
|
75 |
|
76 |
with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange") as app:
|
77 |
gr.Markdown("# π Fashion AI Studio")
|
|
|
78 |
|
79 |
with gr.Column():
|
80 |
mode = gr.Radio(
|
81 |
+
choices=["Person", "Clothes"],
|
82 |
+
label="Generation",
|
83 |
+
value="Fashion Model"
|
84 |
)
|
85 |
|
86 |
prompt = gr.TextArea(
|
87 |
+
label="βοΈ Prompt (νκΈ μ§μ)",
|
88 |
+
placeholder="Text Input Prompt",
|
89 |
lines=3
|
90 |
)
|
91 |
|
|
|
94 |
gr.Examples(
|
95 |
examples=model_examples,
|
96 |
inputs=prompt,
|
97 |
+
label="Examples(person)"
|
98 |
)
|
99 |
|
100 |
with gr.Column(visible=False) as clothes_examples_container:
|
101 |
gr.Examples(
|
102 |
examples=clothes_examples,
|
103 |
inputs=prompt,
|
104 |
+
label="Examples(clothes)"
|
105 |
)
|
106 |
|
107 |
+
result = gr.Image(label="Generated Image")
|
108 |
+
generate_button = gr.Button("π START")
|
109 |
|
110 |
+
with gr.Accordion("π¨ OPTION", open=False):
|
111 |
with gr.Row():
|
112 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7.0)
|
113 |
steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=30)
|
|
|
123 |
|
124 |
def update_visibility(mode):
|
125 |
return (
|
126 |
+
gr.update(visible=(mode == "Person")),
|
127 |
+
gr.update(visible=(mode == "Clothes"))
|
128 |
)
|
129 |
|
130 |
mode.change(
|