Spaces:
Running
on
Zero
Running
on
Zero
tori29umai
commited on
Commit
•
ef92e8a
1
Parent(s):
d983f79
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def predict(input_image_path, prompt, negative_prompt, controlnet_scale):
|
|
46 |
resize_base_image = resize_image_aspect_ratio(base_image)
|
47 |
generator = torch.manual_seed(0)
|
48 |
last_time = time.time()
|
49 |
-
prompt = "masterpiece, best quality, monochrome, greyscale, lineart, white background, " + prompt
|
50 |
execute_tags = ["realistic", "nose", "asian"]
|
51 |
prompt = execute_prompt(execute_tags, prompt)
|
52 |
prompt = remove_duplicates(prompt)
|
@@ -100,7 +100,7 @@ class Img2Img:
|
|
100 |
with gr.Column():
|
101 |
self.input_image_path = gr.Image(label="Input image", type='filepath')
|
102 |
self.prompt = gr.Textbox(label="Prompt", lines=3)
|
103 |
-
self.negative_prompt = gr.Textbox(label="Negative prompt", lines=3, value="
|
104 |
prompt_analysis_button = gr.Button("Prompt analysis")
|
105 |
self.controlnet_scale = gr.Slider(minimum=0.4, maximum=1.0, value=0.55, step=0.01, label="Photp fidelity")
|
106 |
generate_button = gr.Button(value="Generate", variant="primary")
|
|
|
46 |
resize_base_image = resize_image_aspect_ratio(base_image)
|
47 |
generator = torch.manual_seed(0)
|
48 |
last_time = time.time()
|
49 |
+
prompt = "masterpiece, best quality, monochrome, greyscale, lineart, white background, star-shaped pupils, " + prompt
|
50 |
execute_tags = ["realistic", "nose", "asian"]
|
51 |
prompt = execute_prompt(execute_tags, prompt)
|
52 |
prompt = remove_duplicates(prompt)
|
|
|
100 |
with gr.Column():
|
101 |
self.input_image_path = gr.Image(label="Input image", type='filepath')
|
102 |
self.prompt = gr.Textbox(label="Prompt", lines=3)
|
103 |
+
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")
|
104 |
prompt_analysis_button = gr.Button("Prompt analysis")
|
105 |
self.controlnet_scale = gr.Slider(minimum=0.4, maximum=1.0, value=0.55, step=0.01, label="Photp fidelity")
|
106 |
generate_button = gr.Button(value="Generate", variant="primary")
|