Spaces:
Running
on
Zero
Running
on
Zero
tori29umai
commited on
Commit
•
98a50a9
1
Parent(s):
f68a8d0
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,18 @@ def predict(lora_model, input_image_path, prompt, negative_prompt, controlnet_sc
|
|
71 |
last_time = time.time()
|
72 |
|
73 |
# プロンプト生成
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
execute_tags = ["realistic", "nose", "asian"]
|
76 |
prompt = execute_prompt(execute_tags, prompt)
|
77 |
prompt = remove_duplicates(prompt)
|
@@ -123,7 +134,7 @@ class Img2Img:
|
|
123 |
with gr.Row():
|
124 |
with gr.Column():
|
125 |
# LoRAモデル選択ドロップダウン
|
126 |
-
self.lora_model = gr.Dropdown(label="Image Style", choices=["プレーン", "とりにく風", "少女漫画風"
|
127 |
self.input_image_path = gr.Image(label="Input image", type='filepath')
|
128 |
self.bg_removed_image_path = gr.Image(label="Background Removed Image", type='filepath')
|
129 |
|
|
|
71 |
last_time = time.time()
|
72 |
|
73 |
# プロンプト生成
|
74 |
+
|
75 |
+
# LoRAモデルの設定
|
76 |
+
if lora_model == "とりにく風":
|
77 |
+
prompt = "masterpiece, best quality, monochrome, greyscale, lineart, white background, chibi " + prompt
|
78 |
+
elif lora_model == "少女漫画風":
|
79 |
+
prompt = "masterpiece, best quality, monochrome, greyscale, lineart, white background, star-shaped pupils, " + prompt
|
80 |
+
elif lora_model == "劇画調風":
|
81 |
+
prompt = "masterpiece, best quality, monochrome, greyscale, lineart, white background, " + prompt
|
82 |
+
elif lora_model == "プレーン":
|
83 |
+
prompt = "masterpiece, best quality, monochrome, greyscale, lineart, white background, " + prompt
|
84 |
+
|
85 |
+
|
86 |
execute_tags = ["realistic", "nose", "asian"]
|
87 |
prompt = execute_prompt(execute_tags, prompt)
|
88 |
prompt = remove_duplicates(prompt)
|
|
|
134 |
with gr.Row():
|
135 |
with gr.Column():
|
136 |
# LoRAモデル選択ドロップダウン
|
137 |
+
self.lora_model = gr.Dropdown(label="Image Style", choices=["プレーン", "とりにく風", "少女漫画風"], value="プレーン")
|
138 |
self.input_image_path = gr.Image(label="Input image", type='filepath')
|
139 |
self.bg_removed_image_path = gr.Image(label="Background Removed Image", type='filepath')
|
140 |
|