Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -214,41 +214,13 @@ def infer_pose(prompt,
|
|
214 |
).images[0]
|
215 |
return [condi_img, image], seed
|
216 |
|
217 |
-
|
218 |
-
|
219 |
-
|
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():
|