HelloSun commited on
Commit
44adcf6
·
verified ·
1 Parent(s): 5effd4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -16,7 +16,15 @@ def infer(prompt,negative_prompt):
16
 
17
  image = pipe(
18
  prompt = prompt,
19
- negative_prompt = negative_prompt,
 
 
 
 
 
 
 
 
20
  width = 256,
21
  height = 256,
22
  ).images[0]
@@ -54,15 +62,7 @@ with gr.Blocks(css=css) as demo:
54
  max_lines=1,
55
  placeholder="Enter your prompt",
56
  container=False,
57
- )
58
- with gr.Row():
59
- negative_prompt = gr.Text(
60
- label="negative_prompt",
61
- show_label=False,
62
- max_lines=1,
63
- placeholder="Enter your prompt",
64
- container=False,
65
- )
66
  run_button = gr.Button("Run", scale=0)
67
 
68
  result = gr.Image(label="Result", show_label=False)
@@ -74,7 +74,7 @@ with gr.Blocks(css=css) as demo:
74
 
75
  run_button.click(
76
  fn = infer,
77
- inputs = [prompt,negative_prompt],
78
  outputs = [result]
79
  )
80
 
 
16
 
17
  image = pipe(
18
  prompt = prompt,
19
+ negative_prompt = "score_6,score_5,score_4,source_furry,pathway,walkway,face mask,heterochromia,\
20
+ tattoos,muscular,deformed iris,deformed pupils,long body,long neck,text,error,print,signature,\
21
+ logo,watermark,deformed,distorted,disfigured,bad anatomy,wrong anatomy,ugly,disgusting,\
22
+ cropped,crooked teeth,multiple views,bad proportions,gross proportions,cloned face,\
23
+ worst quality,low quality,normal quality,bad quality,lowres,poorly drawn,semi-realistic,\
24
+ 3d,render,cg,cgi,imperfect,partial,unfinished,incomplete,monochrome,grayscale,sepia,fat,\
25
+ wrinkle,fat leg,fat ass,blurry,hazy,sagging breasts,longbody,lowres,\
26
+ bad anatomy,bad hands,missing fingers,extra digit,fewer digits,worst quality,\
27
+ low quality,normal quality,watermark,artist name,signature,",
28
  width = 256,
29
  height = 256,
30
  ).images[0]
 
62
  max_lines=1,
63
  placeholder="Enter your prompt",
64
  container=False,
65
+ )
 
 
 
 
 
 
 
 
66
  run_button = gr.Button("Run", scale=0)
67
 
68
  result = gr.Image(label="Result", show_label=False)
 
74
 
75
  run_button.click(
76
  fn = infer,
77
+ inputs = [prompt],
78
  outputs = [result]
79
  )
80