Update app.py
Browse files
app.py
CHANGED
@@ -157,8 +157,7 @@ def create_demo(args, model_name: str, device: str = "cuda" if torch.cuda.is_ava
|
|
157 |
offload: bool = False):
|
158 |
|
159 |
with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
|
160 |
-
gr.Markdown("
|
161 |
-
gr.Markdown("### ์ด์ฉ ์๋ด: 1) ์์์ค ํ๋๋ฅผ ์ ํ. 2) ์นด๋ฉ๋ผ ๋ฒํผ์ ํด๋ฆญํ๊ณ ์ผ๊ตด์ด ๋ณด์ด๋ฉด ์นด๋ฉ๋ผ ๋ฒํผ ํด๋ฆญ. 3) '์์ฑ' ๋ฒํผ์ ํด๋ฆญํ๊ณ ๊ธฐ๋ค๋ฆฌ๋ฉด ๋ฉ๋๋ค.")
|
162 |
|
163 |
with gr.Row():
|
164 |
with gr.Column():
|
@@ -171,19 +170,21 @@ def create_demo(args, model_name: str, device: str = "cuda" if torch.cuda.is_ava
|
|
171 |
|
172 |
with gr.Row():
|
173 |
with gr.Column():
|
174 |
-
gr.Markdown("###
|
175 |
|
176 |
all_examples = [
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
|
|
|
|
187 |
]
|
188 |
|
189 |
example_images = [example[1] for example in all_examples]
|
@@ -221,7 +222,7 @@ def create_demo(args, model_name: str, device: str = "cuda" if torch.cuda.is_ava
|
|
221 |
prompt,
|
222 |
id_image,
|
223 |
gr.Slider(0.0, 3.0, 1, step=0.05, visible=False), # id_weight
|
224 |
-
gr.Textbox("
|
225 |
gr.Slider(1.0, 10.0, 1, step=0.1, visible=False), # true_cfg
|
226 |
gr.Slider(0, 20, 1, step=1, visible=False), # timestep_to_start_cfg
|
227 |
gr.Slider(128, 512, 128, step=128, visible=False), # max_sequence_length
|
|
|
157 |
offload: bool = False):
|
158 |
|
159 |
with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
|
160 |
+
gr.Markdown("### 'AI ํฌํ ์ง๋'์ด์ฉ ์๋ด: 1) '์คํ์ผ'์ค ํ๋๋ฅผ ์ ํ. 2) ์น์บ ์ ํด๋ฆญํ๊ณ ์ผ๊ตด์ด ๋ณด์ด๋ฉด ์นด๋ฉ๋ผ ๋ฒํผ ํด๋ฆญ. 3) '์์ฑ' ๋ฒํผ์ ํด๋ฆญํ๊ณ ๊ธฐ๋ค๋ฆฌ๋ฉด ๋ฉ๋๋ค.")
|
|
|
161 |
|
162 |
with gr.Row():
|
163 |
with gr.Column():
|
|
|
170 |
|
171 |
with gr.Row():
|
172 |
with gr.Column():
|
173 |
+
gr.Markdown("### ์คํ์ผ")
|
174 |
|
175 |
all_examples = [
|
176 |
+
#์ฐ์ฃผ ์ฌํI ['I am an astronaut on a spacewalk. There is no helmet, and my face is visible. The background is Earth & starship as seen from space shuttle.', 'example_inputs/1.webp'],
|
177 |
+
#์ฐ์ฃผ ์ฌํII ['I am an astronaut on a spacewalk. There is no helmet, and my face is visible. The background is Earth & starship as seen from space shuttle.I am holding sign with glowing green text "I Love Mom"', 'example_inputs/2.webp'],
|
178 |
+
#๋ด๊ฐ ์ด๋ฅธ์ด ๋๋ฉด ['profile photo of a 40-year-old Adult Looking straight ahead, wear suite', 'example_inputs/3.webp'],
|
179 |
+
#์์ด์ธ๋งจ ๋ณ์ ['I am an "IRON MAN"', 'example_inputs/4.webp'],
|
180 |
+
#ํ์ฑ ํํ ['I am wearing a spacesuit and have become an astronaut walking on Mars. I'm not wearing a helmet. I'm looking straight ahead. The background is a desolate area of Mars, and a space rover and a space station can be seen.', 'example_inputs/5.webp'],
|
181 |
+
#์คํ์ด๋๋งจ ['I am an "spider MAN"', 'example_inputs/6.webp'],
|
182 |
+
#์ฐ์ฃผ์ ์กฐ์ข
['I am wearing a spacesuit and have become an astronaut. I am piloting a spacecraft. Through the spacecraft's window, I can see outer space.', 'example_inputs/7.webp'],
|
183 |
+
#๋งํ ์ฃผ์ธ๊ณต ['portrait, pixar style', 'example_inputs/8.webp'],
|
184 |
+
#์๋์ฐ๋จผ ['I am an "wonder woman"', 'example_inputs/9.webp'],
|
185 |
+
#์นด์ฐ๋ณด์ด ['Cowboy, american comics style', 'example_inputs/10.webp'],
|
186 |
+
|
187 |
+
|
188 |
]
|
189 |
|
190 |
example_images = [example[1] for example in all_examples]
|
|
|
222 |
prompt,
|
223 |
id_image,
|
224 |
gr.Slider(0.0, 3.0, 1, step=0.05, visible=False), # id_weight
|
225 |
+
gr.Textbox("Low quality, worst quality, text, signature, watermark, extra limbs", visible=False), # neg_prompt
|
226 |
gr.Slider(1.0, 10.0, 1, step=0.1, visible=False), # true_cfg
|
227 |
gr.Slider(0, 20, 1, step=1, visible=False), # timestep_to_start_cfg
|
228 |
gr.Slider(128, 512, 128, step=128, visible=False), # max_sequence_length
|