easy UI
Browse files
app.py
CHANGED
@@ -221,10 +221,28 @@ with gr.Blocks(css=css, theme="NoCrypt/miku@1.2.1") as demo:
|
|
221 |
)
|
222 |
# input_image = gr.File(label='Input image')
|
223 |
url_image = gr.Textbox(label="Image URLS", value="")
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
|
229 |
with gr.Column(elem_id="column_output"):
|
230 |
gr.Markdown("## IMAGE GENERATE", elem_id="output_header")
|
@@ -244,27 +262,27 @@ with gr.Blocks(css=css, theme="NoCrypt/miku@1.2.1") as demo:
|
|
244 |
prompt = gr.Textbox(label="Personalized Text", value="", show_label=True)
|
245 |
with gr.Accordion("S2I Advances Option", open=True):
|
246 |
with gr.Row():
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
prompt_temp = gr.Textbox(
|
269 |
label="Prompt Style Template",
|
270 |
value=controller.styles[controller.DEFAULT_STYLE_NAME],
|
|
|
221 |
)
|
222 |
# input_image = gr.File(label='Input image')
|
223 |
url_image = gr.Textbox(label="Image URLS", value="")
|
224 |
+
with gr.Row():
|
225 |
+
ui_mode = gr.Radio(
|
226 |
+
choices=["Light Mode", "Dark Mode"],
|
227 |
+
value="Light Mode",
|
228 |
+
label="Switch Light/Dark Mode UI",
|
229 |
+
interactive=True)
|
230 |
+
type_image = gr.Radio(
|
231 |
+
choices=["RGB", "SKETCH"],
|
232 |
+
value="SKETCH",
|
233 |
+
label="Type of Image (Color Image or Sketch Image)",
|
234 |
+
interactive=True)
|
235 |
+
input_type = gr.Radio(
|
236 |
+
choices=["live-sketch", "url-sketch"],
|
237 |
+
value="live-sketch",
|
238 |
+
label="Type Sketch2Image models",
|
239 |
+
interactive=True)
|
240 |
+
style = gr.Dropdown(
|
241 |
+
label="Style",
|
242 |
+
choices=controller.STYLE_NAMES,
|
243 |
+
value=controller.DEFAULT_STYLE_NAME,
|
244 |
+
scale=1,
|
245 |
+
)
|
246 |
|
247 |
with gr.Column(elem_id="column_output"):
|
248 |
gr.Markdown("## IMAGE GENERATE", elem_id="output_header")
|
|
|
262 |
prompt = gr.Textbox(label="Personalized Text", value="", show_label=True)
|
263 |
with gr.Accordion("S2I Advances Option", open=True):
|
264 |
with gr.Row():
|
265 |
+
# ui_mode = gr.Radio(
|
266 |
+
# choices=["Light Mode", "Dark Mode"],
|
267 |
+
# value="Light Mode",
|
268 |
+
# label="Switch Light/Dark Mode UI",
|
269 |
+
# interactive=True)
|
270 |
+
# type_image = gr.Radio(
|
271 |
+
# choices=["RGB", "SKETCH"],
|
272 |
+
# value="SKETCH",
|
273 |
+
# label="Type of Image (Color Image or Sketch Image)",
|
274 |
+
# interactive=True)
|
275 |
+
# input_type = gr.Radio(
|
276 |
+
# choices=["live-sketch", "url-sketch"],
|
277 |
+
# value="live-sketch",
|
278 |
+
# label="Type Sketch2Image models",
|
279 |
+
# interactive=True)
|
280 |
+
# style = gr.Dropdown(
|
281 |
+
# label="Style",
|
282 |
+
# choices=controller.STYLE_NAMES,
|
283 |
+
# value=controller.DEFAULT_STYLE_NAME,
|
284 |
+
# scale=1,
|
285 |
+
# )
|
286 |
prompt_temp = gr.Textbox(
|
287 |
label="Prompt Style Template",
|
288 |
value=controller.styles[controller.DEFAULT_STYLE_NAME],
|