HelloSun commited on
Commit
52ee8e4
·
verified ·
1 Parent(s): d1288f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -26,11 +26,11 @@ pipe.reshape( batch_size=-1, height=512, width=512, num_images_per_prompt=1)
26
  pipe.compile()
27
 
28
 
29
- def infer(prompt,negative_prompt):
30
 
31
  image = pipe(
32
- prompt = prompt+"score_8_up,score_7_up,score_6_up,score_9,score_8_up,score_7,masterpiece,best quality,source_anime,bangs,",
33
- negative_prompt = "SimpleNegative_AnimeV1, SimpleNegativeV3, an12, rfneg, verybadimagenegative_v1.3, easynegative, text, watermark, censored, (mosaic censoring:1.3), teeth, (animal ears:2)",
34
  width = 512,
35
  height = 512,
36
  guidance_scale=1.0,
@@ -84,7 +84,7 @@ with gr.Blocks(css=css) as demo:
84
 
85
  run_button.click(
86
  fn = infer,
87
- inputs = [prompt],
88
  outputs = [result]
89
  )
90
 
 
26
  pipe.compile()
27
 
28
 
29
+ def infer(prompt,negative_prompt, step):
30
 
31
  image = pipe(
32
+ prompt = prompt,
33
+ negative_prompt = negative_prompt,
34
  width = 512,
35
  height = 512,
36
  guidance_scale=1.0,
 
84
 
85
  run_button.click(
86
  fn = infer,
87
+ inputs = [prompt,"",4],
88
  outputs = [result]
89
  )
90