tori29umai commited on
Commit
9556dc9
1 Parent(s): 240afb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -135,6 +135,7 @@ class Img2Img:
135
  self.lora_model = gr.Dropdown(label="Image Style", choices=["少女漫画風", "プレーン"], value="少女漫画風")
136
  self.input_image_path = gr.Image(label="Input image", type='filepath')
137
  self.bg_removed_image_path = gr.Image(label="Background Removed Image", type='filepath')
 
138
 
139
  # 自動背景除去とプロンプト解析トリガー
140
  self.input_image_path.change(
@@ -143,7 +144,6 @@ class Img2Img:
143
  outputs=[self.bg_removed_image_path, self.prompt]
144
  )
145
 
146
- self.prompt = gr.Textbox(label="Prompt", lines=3)
147
  self.negative_prompt = gr.Textbox(label="Negative prompt", lines=3, value="nose, asian, realistic, lowres, error, extra digit, fewer digits, cropped, worst quality,low quality, normal quality, jpeg artifacts, blurry")
148
  self.controlnet_scale = gr.Slider(minimum=0.4, maximum=1.0, value=0.55, step=0.01, label="Photo fidelity")
149
  generate_button = gr.Button(value="Generate", variant="primary")
 
135
  self.lora_model = gr.Dropdown(label="Image Style", choices=["少女漫画風", "プレーン"], value="少女漫画風")
136
  self.input_image_path = gr.Image(label="Input image", type='filepath')
137
  self.bg_removed_image_path = gr.Image(label="Background Removed Image", type='filepath')
138
+ self.prompt = gr.Textbox(label="Prompt", lines=3)
139
 
140
  # 自動背景除去とプロンプト解析トリガー
141
  self.input_image_path.change(
 
144
  outputs=[self.bg_removed_image_path, self.prompt]
145
  )
146
 
 
147
  self.negative_prompt = gr.Textbox(label="Negative prompt", lines=3, value="nose, asian, realistic, lowres, error, extra digit, fewer digits, cropped, worst quality,low quality, normal quality, jpeg artifacts, blurry")
148
  self.controlnet_scale = gr.Slider(minimum=0.4, maximum=1.0, value=0.55, step=0.01, label="Photo fidelity")
149
  generate_button = gr.Button(value="Generate", variant="primary")