Spaces:
Running
on
A10G
Running
on
A10G
Commit
Β·
a5e3b1c
1
Parent(s):
b81bda4
Update app.py
Browse files
app.py
CHANGED
@@ -457,6 +457,9 @@ with gr.Blocks() as demo:
|
|
457 |
<h2 style="text-align: left; font-weight: 450; font-size: 1rem; margin-top: 0.5rem; margin-bottom: 0.5rem">
|
458 |
π <b>Tips for using this demo</b>: <b>(1)</b> Please carefully read the disclaimer in the below. Current verison can only support English. <b>(2)</b> The specification of keywords is optional. If provided, the language model will do its best to plan layouts using the given keywords. <b>(3)</b> If a template is given, the layout planner (M1) is not used. <b>(4)</b> Three operations, including redo, undo, and skip are provided. When using skip, only the left-top point of a keyword will be recorded, resulting in more diversity but sometimes decreasing the accuracy. <b>(5)</b> The layout planner can produce different layouts. You can increase the temperature to enhance the diversity. β¨ <b>(6)</b> We also provide the experimental demo combining <b>TextDiffuser-2</b> and <b>LCM</b>. The inference is fast using less sampling steps, although the precision in text rendering might decrease.
|
459 |
</h2>
|
|
|
|
|
|
|
460 |
<img src="https://raw.githubusercontent.com/JingyeChen/jingyechen.github.io/master/textdiffuser2/static/images/architecture_blank.jpg" alt="textdiffuser-2">
|
461 |
</div>
|
462 |
""")
|
@@ -491,7 +494,7 @@ with gr.Blocks() as demo:
|
|
491 |
|
492 |
|
493 |
|
494 |
-
guest_id_box = gr.Textbox(label="guest_id", value=f"-1")
|
495 |
i.select(get_pixels,[i,t,guest_id_box],[i,guest_id_box])
|
496 |
redo.click(exe_redo, [i,t,guest_id_box],[i])
|
497 |
undo.click(exe_undo, [i,t,guest_id_box],[i])
|
|
|
457 |
<h2 style="text-align: left; font-weight: 450; font-size: 1rem; margin-top: 0.5rem; margin-bottom: 0.5rem">
|
458 |
π <b>Tips for using this demo</b>: <b>(1)</b> Please carefully read the disclaimer in the below. Current verison can only support English. <b>(2)</b> The specification of keywords is optional. If provided, the language model will do its best to plan layouts using the given keywords. <b>(3)</b> If a template is given, the layout planner (M1) is not used. <b>(4)</b> Three operations, including redo, undo, and skip are provided. When using skip, only the left-top point of a keyword will be recorded, resulting in more diversity but sometimes decreasing the accuracy. <b>(5)</b> The layout planner can produce different layouts. You can increase the temperature to enhance the diversity. β¨ <b>(6)</b> We also provide the experimental demo combining <b>TextDiffuser-2</b> and <b>LCM</b>. The inference is fast using less sampling steps, although the precision in text rendering might decrease.
|
459 |
</h2>
|
460 |
+
<h2 style="text-align: left; font-weight: 450; font-size: 1rem; margin-top: 0.5rem; margin-bottom: 0.5rem">
|
461 |
+
π₯ Demo for text inpainting is released at <a href="https://huggingface.co/spaces/JingyeChen22/TextDiffuser-2-Text-Inpainting">Link</a>. Welcome to play with it!
|
462 |
+
</h2>
|
463 |
<img src="https://raw.githubusercontent.com/JingyeChen/jingyechen.github.io/master/textdiffuser2/static/images/architecture_blank.jpg" alt="textdiffuser-2">
|
464 |
</div>
|
465 |
""")
|
|
|
494 |
|
495 |
|
496 |
|
497 |
+
guest_id_box = gr.Textbox(label="guest_id", value=f"-1", visible=False)
|
498 |
i.select(get_pixels,[i,t,guest_id_box],[i,guest_id_box])
|
499 |
redo.click(exe_redo, [i,t,guest_id_box],[i])
|
500 |
undo.click(exe_undo, [i,t,guest_id_box],[i])
|