Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -207,7 +207,58 @@ def update_button_state(img, prompt):
|
|
207 |
return gr.Button.update(interactive=bool(img and prompt))
|
208 |
|
209 |
|
210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
# Gradio UI 부분 수정
|
212 |
with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
213 |
gr.HTML("""
|
|
|
207 |
return gr.Button.update(interactive=bool(img and prompt))
|
208 |
|
209 |
|
210 |
+
# 맨 앞부분에 CSS 정의 추가
|
211 |
+
css = """
|
212 |
+
footer {display: none}
|
213 |
+
.main-title {
|
214 |
+
text-align: center;
|
215 |
+
margin: 2em 0;
|
216 |
+
padding: 1em;
|
217 |
+
background: #f7f7f7;
|
218 |
+
border-radius: 10px;
|
219 |
+
}
|
220 |
+
.main-title h1 {
|
221 |
+
color: #2196F3;
|
222 |
+
font-size: 2.5em;
|
223 |
+
margin-bottom: 0.5em;
|
224 |
+
}
|
225 |
+
.main-title p {
|
226 |
+
color: #666;
|
227 |
+
font-size: 1.2em;
|
228 |
+
}
|
229 |
+
.container {
|
230 |
+
max-width: 1200px;
|
231 |
+
margin: auto;
|
232 |
+
padding: 20px;
|
233 |
+
}
|
234 |
+
.tabs {
|
235 |
+
margin-top: 1em;
|
236 |
+
}
|
237 |
+
.input-group {
|
238 |
+
background: white;
|
239 |
+
padding: 1em;
|
240 |
+
border-radius: 8px;
|
241 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
242 |
+
}
|
243 |
+
.output-group {
|
244 |
+
background: white;
|
245 |
+
padding: 1em;
|
246 |
+
border-radius: 8px;
|
247 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
248 |
+
}
|
249 |
+
button.primary {
|
250 |
+
background: #2196F3;
|
251 |
+
border: none;
|
252 |
+
color: white;
|
253 |
+
padding: 0.5em 1em;
|
254 |
+
border-radius: 4px;
|
255 |
+
cursor: pointer;
|
256 |
+
transition: background 0.3s ease;
|
257 |
+
}
|
258 |
+
button.primary:hover {
|
259 |
+
background: #1976D2;
|
260 |
+
}
|
261 |
+
"""
|
262 |
# Gradio UI 부분 수정
|
263 |
with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
264 |
gr.HTML("""
|