Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -153,21 +153,13 @@ with gr.Blocks(css=css) as demo:
|
|
153 |
with gr.Column():
|
154 |
input_image = gr.Image(label="Upload the image for relighting", type="pil")
|
155 |
|
156 |
-
prompt = gr.Textbox(
|
157 |
-
label="Prompt",
|
158 |
-
show_label=True,
|
159 |
-
max_lines=3,
|
160 |
-
placeholder="select an illumination style above or enter your custom description...",
|
161 |
-
value="Add directional sunlight from window source. Increase brightness on lit areas. Create hard shadows with sharp edges. Set warm white color temperature. Add visible light rays and dust particles in beams.",
|
162 |
-
container=True
|
163 |
-
)
|
164 |
with gr.Row():
|
165 |
|
166 |
illumination_dropdown = gr.Dropdown(
|
167 |
choices=list(ILLUMINATION_OPTIONS.keys()) + ["custom"],
|
168 |
value="sunshine from window",
|
169 |
label="Choose Illumination Style",
|
170 |
-
info="Select a predefined lighting style or choose '
|
171 |
scale=2
|
172 |
)
|
173 |
|
@@ -178,6 +170,15 @@ with gr.Blocks(css=css) as demo:
|
|
178 |
info="Choose the direction of the light source",
|
179 |
scale=1
|
180 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
|
182 |
|
183 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
|
|
153 |
with gr.Column():
|
154 |
input_image = gr.Image(label="Upload the image for relighting", type="pil")
|
155 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
with gr.Row():
|
157 |
|
158 |
illumination_dropdown = gr.Dropdown(
|
159 |
choices=list(ILLUMINATION_OPTIONS.keys()) + ["custom"],
|
160 |
value="sunshine from window",
|
161 |
label="Choose Illumination Style",
|
162 |
+
info="Select a predefined lighting style or choose 'custom' to make your own",
|
163 |
scale=2
|
164 |
)
|
165 |
|
|
|
170 |
info="Choose the direction of the light source",
|
171 |
scale=1
|
172 |
)
|
173 |
+
prompt = gr.Textbox(
|
174 |
+
label="Prompt",
|
175 |
+
info="Prompt is auto-generated by the selected illumination style, customize/override it by selecting 'custom'",
|
176 |
+
show_label=True,
|
177 |
+
max_lines=3,
|
178 |
+
placeholder="select an illumination style above or enter your custom description...",
|
179 |
+
value="Add directional sunlight from window source. Increase brightness on lit areas. Create hard shadows with sharp edges. Set warm white color temperature. Add visible light rays and dust particles in beams.",
|
180 |
+
container=True
|
181 |
+
)
|
182 |
|
183 |
|
184 |
run_button = gr.Button("Run", scale=0, variant="primary")
|