seawolf2357 commited on
Commit
fa1ed85
ยท
verified ยท
1 Parent(s): 4e297e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
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(label="Negative Prompt")
 
 
 
 
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
- negative_prompt_15 = gr.Textbox(label="Negative Prompt")
 
 
 
 
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=[