fantos commited on
Commit
b4134a4
Β·
verified Β·
1 Parent(s): 66f9e06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -36
app.py CHANGED
@@ -214,41 +214,13 @@ def infer_pose(prompt,
214
  ).images[0]
215
  return [condi_img, image], seed
216
 
217
- canny_examples = [
218
- ["μ•„λ¦„λ‹€μš΄ μ†Œλ…€, κ³ ν’ˆμ§ˆ, μ΄ˆκ³ ν•΄μƒλ„, μƒμƒν•œ 색상, 졜고의 ν’ˆμ§ˆ, 8k, HD, 4K",
219
- "image/woman_1.png"],
220
- ["μ „κ²½, κ·€μ—¬μš΄ 흰 강아지가 컡에 앉아 카메라λ₯Ό 보고 μžˆλ‹€, μ• λ‹ˆλ©”μ΄μ…˜ μŠ€νƒ€μΌ, 3D λ Œλ”λ§",
221
- "image/dog.png"]
222
- ]
223
-
224
- depth_examples = [
225
- ["신카이 λ§ˆμ½”ν†  μŠ€νƒ€μΌ, ν’λΆ€ν•œ 색감, 녹색 μ…”μΈ λ₯Ό μž…μ€ 여성이 λ“€νŒμ— μ„œ μžˆλ‹€, μ•„λ¦„λ‹€μš΄ 풍경, μƒμΎŒν•˜κ³  밝은, λ°˜μ§μ΄λŠ” λΉ›, 졜고의 ν’ˆμ§ˆ, μ΄ˆμ„Έλ°€, 8K ν™”μ§ˆ",
226
- "image/woman_2.png"],
227
- ["ν™”λ €ν•œ μƒ‰μƒμ˜ μž‘μ€ μƒˆ, κ³ ν’ˆμ§ˆ, μ΄ˆκ³ ν•΄μƒλ„, μƒμƒν•œ 색상, 졜고의 ν’ˆμ§ˆ, 8k, HD, 4K",
228
- "image/bird.png"]
229
- ]
230
-
231
- pose_examples = [
232
- ["보라색 퍼프 μ†Œλ§€ λ“œλ ˆμŠ€λ₯Ό μž…κ³  μ™•κ΄€κ³Ό 흰색 레이슀 μž₯갑을 λ‚€ μ†Œλ…€κ°€ μ–‘ μ†μœΌλ‘œ 얼꡴을 감싸고 μžˆλ‹€, κ³ ν’ˆμ§ˆ, μ΄ˆκ³ ν•΄μƒλ„, μƒμƒν•œ 색상, 졜고의 ν’ˆμ§ˆ, 8k, HD, 4K",
233
- "image/woman_3.png"],
234
- ["검은색 슀포츠 μž¬ν‚·κ³Ό 흰색 μ΄λ„ˆλ₯Ό μž…κ³  λͺ©κ±Έμ΄λ₯Ό ν•œ 여성이 거리에 μ„œ μžˆλ‹€, λ°°κ²½μ—λŠ” λΉ¨κ°„ 건물과 녹색 λ‚˜λ¬΄κ°€ μžˆλ‹€, κ³ ν’ˆμ§ˆ, μ΄ˆκ³ ν•΄μƒλ„, μƒμƒν•œ 색상, 졜고의 ν’ˆμ§ˆ, 8k, HD, 4K",
235
- "image/woman_4.png"]
236
- ]
237
-
238
- css="""
239
- #col-left {
240
- margin: 0 auto;
241
- max-width: 600px;
242
- }
243
- #col-right {
244
- margin: 0 auto;
245
- max-width: 750px;
246
- }
247
- #button {
248
- color: blue;
249
  }
250
  """
251
 
 
252
  def load_description(fp):
253
  with open(fp, 'r', encoding='utf-8') as f:
254
  content = f.read()
@@ -306,10 +278,7 @@ def text_to_image(text, size, position):
306
 
307
  return image
308
 
309
-
310
- # ... (previous imports and setup remain the same)
311
-
312
- with gr.Blocks(css=css) as Kolors:
313
  with gr.Row():
314
  with gr.Column(elem_id="col-left"):
315
  with gr.Row():
 
214
  ).images[0]
215
  return [condi_img, image], seed
216
 
217
+ css = """
218
+ footer {
219
+ visibility: hidden;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  }
221
  """
222
 
223
+
224
  def load_description(fp):
225
  with open(fp, 'r', encoding='utf-8') as f:
226
  content = f.read()
 
278
 
279
  return image
280
 
281
+ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as Kolors:
 
 
 
282
  with gr.Row():
283
  with gr.Column(elem_id="col-left"):
284
  with gr.Row():