myn0908 commited on
Commit
254f498
1 Parent(s): cd9fe11
Files changed (1) hide show
  1. app.py +43 -25
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
- download_sketch = gr.Button(
226
- "Download sketch", scale=1, elem_id="download_sketch"
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
- ui_mode = gr.Radio(
248
- choices=["Light Mode", "Dark Mode"],
249
- value="Light Mode",
250
- label="Switch Light/Dark Mode UI",
251
- interactive=True)
252
- type_image = gr.Radio(
253
- choices=["RGB", "SKETCH"],
254
- value="SKETCH",
255
- label="Type of Image (Color Image or Sketch Image)",
256
- interactive=True)
257
- input_type = gr.Radio(
258
- choices=["live-sketch", "url-sketch"],
259
- value="live-sketch",
260
- label="Type Sketch2Image models",
261
- interactive=True)
262
- style = gr.Dropdown(
263
- label="Style",
264
- choices=controller.STYLE_NAMES,
265
- value=controller.DEFAULT_STYLE_NAME,
266
- scale=1,
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],