Spaces:
Sleeping
Sleeping
Commit
·
160996c
1
Parent(s):
8487f87
update
Browse files
app.py
CHANGED
@@ -447,21 +447,21 @@ with gr.Blocks() as demo:
|
|
447 |
keywords = gr.Textbox(label="(Optional) Keywords. Should be seperated by / (e.g., keyword1/keyword2/...)", placeholder="keyword1/keyword2")
|
448 |
positive_prompt = gr.Textbox(label="(Optional) Positive prompt", value=", digital art, very detailed, fantasy, high definition, cinematic light, dnd, trending on artstation")
|
449 |
|
450 |
-
# many encounter concurrent problem
|
451 |
-
with gr.Accordion("(Optional) Template - Click to paint", open=False):
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
i.select(get_pixels,[i,t],[i])
|
462 |
-
redo.click(exe_redo, [i,t],[i])
|
463 |
-
undo.click(exe_undo, [i,t],[i])
|
464 |
-
skip_button.click(skip_fun, [i,t])
|
465 |
|
466 |
radio = gr.Radio(["TextDiffuser-2", "TextDiffuser-2-LCM"], label="Choice of models", value="TextDiffuser-2")
|
467 |
slider_natural = gr.Checkbox(label="Natural image generation", value=False, info="The text position and content info will not be incorporated.")
|
|
|
447 |
keywords = gr.Textbox(label="(Optional) Keywords. Should be seperated by / (e.g., keyword1/keyword2/...)", placeholder="keyword1/keyword2")
|
448 |
positive_prompt = gr.Textbox(label="(Optional) Positive prompt", value=", digital art, very detailed, fantasy, high definition, cinematic light, dnd, trending on artstation")
|
449 |
|
450 |
+
# # many encounter concurrent problem
|
451 |
+
# with gr.Accordion("(Optional) Template - Click to paint", open=False):
|
452 |
+
# with gr.Row():
|
453 |
+
# with gr.Column(scale=1):
|
454 |
+
# i = gr.Image(label="Canvas", type='filepath', value=f'./gray256.jpg', height=256, width=256)
|
455 |
+
# with gr.Column(scale=1):
|
456 |
+
# t = gr.Textbox(label="Keyword", value='input_keyword')
|
457 |
+
# redo = gr.Button(value='Redo - Cancel the last keyword')
|
458 |
+
# undo = gr.Button(value='Undo - Clear the canvas')
|
459 |
+
# skip_button = gr.Button(value='Skip - Operate the next keyword')
|
460 |
+
|
461 |
+
# i.select(get_pixels,[i,t],[i])
|
462 |
+
# redo.click(exe_redo, [i,t],[i])
|
463 |
+
# undo.click(exe_undo, [i,t],[i])
|
464 |
+
# skip_button.click(skip_fun, [i,t])
|
465 |
|
466 |
radio = gr.Radio(["TextDiffuser-2", "TextDiffuser-2-LCM"], label="Choice of models", value="TextDiffuser-2")
|
467 |
slider_natural = gr.Checkbox(label="Natural image generation", value=False, info="The text position and content info will not be incorporated.")
|