Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,9 +47,9 @@ def generate_image(prompt, num_inference_steps, height, width, guidance_scale, s
|
|
| 47 |
|
| 48 |
# 예제 프롬프트
|
| 49 |
examples = [
|
| 50 |
-
["
|
| 51 |
-
["
|
| 52 |
-
["
|
| 53 |
]
|
| 54 |
|
| 55 |
# 커스텀 CSS
|
|
@@ -69,6 +69,19 @@ h1 {
|
|
| 69 |
.gr-button-primary:hover {
|
| 70 |
background-color: #EA580C !important;
|
| 71 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
'''
|
| 73 |
|
| 74 |
# Gradio 인터페이스 생성
|
|
@@ -97,17 +110,26 @@ with gr.Blocks(
|
|
| 97 |
with gr.Column():
|
| 98 |
gr.HTML(
|
| 99 |
"""
|
| 100 |
-
<h1>FLUX.1
|
| 101 |
"""
|
| 102 |
)
|
| 103 |
gr.HTML(
|
| 104 |
"""
|
| 105 |
-
<div
|
| 106 |
-
제작: <a href='https://
|
| 107 |
-
<
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
</div>
|
| 112 |
"""
|
| 113 |
)
|
|
|
|
| 47 |
|
| 48 |
# 예제 프롬프트
|
| 49 |
examples = [
|
| 50 |
+
["A cat holding a sign that says hello world"],
|
| 51 |
+
["a tiny astronaut hatching from an egg on the moon"],
|
| 52 |
+
["An astronaut on mars in a futuristic cyborg suit"],
|
| 53 |
]
|
| 54 |
|
| 55 |
# 커스텀 CSS
|
|
|
|
| 69 |
.gr-button-primary:hover {
|
| 70 |
background-color: #EA580C !important;
|
| 71 |
}
|
| 72 |
+
.footer-content {
|
| 73 |
+
text-align: center;
|
| 74 |
+
margin-top: 2rem;
|
| 75 |
+
font-family: 'Pretendard', sans-serif;
|
| 76 |
+
}
|
| 77 |
+
.footer-content a {
|
| 78 |
+
color: #EA580C;
|
| 79 |
+
text-decoration: none;
|
| 80 |
+
font-weight: 500;
|
| 81 |
+
}
|
| 82 |
+
.footer-content a:hover {
|
| 83 |
+
text-decoration: underline;
|
| 84 |
+
}
|
| 85 |
'''
|
| 86 |
|
| 87 |
# Gradio 인터페이스 생성
|
|
|
|
| 110 |
with gr.Column():
|
| 111 |
gr.HTML(
|
| 112 |
"""
|
| 113 |
+
<h1>끝장AI FLUX.1 이미지 생성기</h1>
|
| 114 |
"""
|
| 115 |
)
|
| 116 |
gr.HTML(
|
| 117 |
"""
|
| 118 |
+
<div class='footer-content'>
|
| 119 |
+
<p>제작: <a href='https://finalendai.com' target='_blank'>끝장AI</a></p>
|
| 120 |
+
<p style='margin-top: 0.5rem;'>
|
| 121 |
+
<a href='https://finalendai.com' target='_blank'
|
| 122 |
+
style='background-color: #EA580C;
|
| 123 |
+
color: white;
|
| 124 |
+
padding: 8px 16px;
|
| 125 |
+
border-radius: 6px;
|
| 126 |
+
font-weight: 500;
|
| 127 |
+
text-decoration: none;
|
| 128 |
+
display: inline-block;
|
| 129 |
+
transition: background-color 0.2s;'>
|
| 130 |
+
끝장AI 방문하기
|
| 131 |
+
</a>
|
| 132 |
+
</p>
|
| 133 |
</div>
|
| 134 |
"""
|
| 135 |
)
|