Update app.py
Browse files
app.py
CHANGED
|
@@ -28,16 +28,23 @@ def run_hidiffusion_15(prompt, negative_prompt="", progress=gr.Progress(track_tq
|
|
| 28 |
|
| 29 |
with gr.Blocks() as demo:
|
| 30 |
gr.Markdown("# HiDiffusion Demo")
|
| 31 |
-
gr.Markdown("Make diffusion models generate higher resolution images with Resolution-Aware U-Net & Multi-head Self-Attention. [Paper](https://huggingface.co/papers/2311.17528) | [Code](https://github.com/megvii-research/HiDiffusion)")
|
| 32 |
with gr.Tab("SDXL in 2048x2048"):
|
| 33 |
with gr.Row():
|
| 34 |
prompt = gr.Textbox(label="Prompt")
|
| 35 |
-
negative_prompt = gr.Textbox(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
btn = gr.Button("Run")
|
| 37 |
with gr.Tab("SD1.5 in 1024x1024"):
|
| 38 |
with gr.Row():
|
| 39 |
prompt_15 = gr.Textbox(label="Prompt")
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
btn_15 = gr.Button("Run")
|
| 42 |
output = gr.Image(label="Result")
|
| 43 |
gr.Examples(examples=[
|
|
|
|
| 28 |
|
| 29 |
with gr.Blocks() as demo:
|
| 30 |
gr.Markdown("# HiDiffusion Demo")
|
|
|
|
| 31 |
with gr.Tab("SDXL in 2048x2048"):
|
| 32 |
with gr.Row():
|
| 33 |
prompt = gr.Textbox(label="Prompt")
|
| 34 |
+
negative_prompt = gr.Textbox(
|
| 35 |
+
label="Negative Prompt",
|
| 36 |
+
value="(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, (NSFW:1.25)", # ์ด ๋ถ๋ถ์ ๊ธฐ๋ณธ๊ฐ์ ์ค์
|
| 37 |
+
visible=False # ์ฌ์ฉ์ ์ธํฐํ์ด์ค์์ ์ด ํ๋๋ฅผ ์จ๊น
|
| 38 |
+
)
|
| 39 |
btn = gr.Button("Run")
|
| 40 |
with gr.Tab("SD1.5 in 1024x1024"):
|
| 41 |
with gr.Row():
|
| 42 |
prompt_15 = gr.Textbox(label="Prompt")
|
| 43 |
+
negative_prompt = gr.Textbox(
|
| 44 |
+
label="Negative Prompt",
|
| 45 |
+
value="(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, (NSFW:1.25)", # ์ด ๋ถ๋ถ์ ๊ธฐ๋ณธ๊ฐ์ ์ค์
|
| 46 |
+
visible=False # ์ฌ์ฉ์ ์ธํฐํ์ด์ค์์ ์ด ํ๋๋ฅผ ์จ๊น
|
| 47 |
+
)
|
| 48 |
btn_15 = gr.Button("Run")
|
| 49 |
output = gr.Image(label="Result")
|
| 50 |
gr.Examples(examples=[
|