Spaces:
openfree
/
Running on Zero

openfree commited on
Commit
7a0125f
โ€ข
1 Parent(s): 36e5c51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -14
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("## AI ํฌํ†  ์ง€๋‹ˆ: ์šฐ์ฃผ")
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
- ['์—ฌ์ž๊ฐ€ "PuLID for FLUX"๋ผ๊ณ  ์“ฐ์ธ ๋น›๋‚˜๋Š” ๋…น์ƒ‰ ํ‘œ์ง€ํŒ์„ ๋“ค๊ณ  ์žˆ๋‹ค', 'example_inputs/liuyifei.png'],
178
- ['์˜†๋ชจ์Šต ์ดˆ์ƒํ™”', 'example_inputs/liuyifei.png'],
179
- ['VR ๊ธฐ์ˆ  ๋ถ„์œ„๊ธฐ์˜ ํฐ ๋จธ๋ฆฌ ์—ฌ์„ฑ', 'example_inputs/liuyifei.png'],
180
- ['์–ด๋ฆฐ ์•„์ด๊ฐ€ ์•„์ด์Šคํฌ๋ฆผ์„ ๋จน๊ณ  ์žˆ๋‹ค', 'example_inputs/liuyifei.png'],
181
- ['๋‚จ์ž๊ฐ€ "PuLID for FLUX"๋ผ๊ณ  ์“ฐ์ธ ํ‘œ์ง€ํŒ์„ ๋“ค๊ณ  ์žˆ๋‹ค, ๊ฒจ์šธ, ๋ˆˆ ๋‚ด๋ฆผ', 'example_inputs/pengwei.jpg'],
182
- ['์ดˆ์ƒํ™”, ์ด›๋ถˆ ์กฐ๋ช…', 'example_inputs/pengwei.jpg'],
183
- ['25์„ธ ๋‚จ์„ฑ์˜ ์–ด๋‘์šด ํ”„๋กœํ•„ ์‚ฌ์ง„, ์ž…์—์„œ ์—ฐ๊ธฐ๊ฐ€ ๋‚˜์˜ค๊ณ  ์žˆ์Œ', 'example_inputs/pengwei.jpg'],
184
- ['๋ฏธ๊ตญ ๋งŒํ™” ์Šคํƒ€์ผ, ์†Œ๋…„ 1๋ช…', 'example_inputs/pengwei.jpg'],
185
- ['์ดˆ์ƒํ™”, ํ”ฝ์‚ฌ ์Šคํƒ€์ผ', 'example_inputs/pengwei.jpg'],
186
- ['์ดˆ์ƒํ™”, ์–ผ์Œ ์กฐ๊ฐ์ƒ', 'example_inputs/lecun.jpg'],
 
 
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("์ €ํ’ˆ์งˆ, ์ตœ์•…์˜ ํ’ˆ์งˆ, ํ…์ŠคํŠธ, ์„œ๋ช…, ์›Œํ„ฐ๋งˆํฌ, ์—ฌ๋ถ„์˜ ํŒ”๋‹ค๋ฆฌ", visible=False), # neg_prompt
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