Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -188,17 +188,14 @@ st.markdown(
|
|
| 188 |
)
|
| 189 |
|
| 190 |
# 고정 이미지 URL
|
| 191 |
-
BG_URL = "https://plus.unsplash.com/premium_photo-1679830513869-cd3648acb1db?q=80&w=2127&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
|
| 192 |
-
|
| 193 |
-
# === 배경 설정 UI ===
|
| 194 |
-
st.sidebar.subheader("🎨 배경 설정")
|
| 195 |
-
st.sidebar.toggle("배경 이미지 사용", key="bg_on", value=True)
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
st.text_input("배경 이미지 URL", key="bg_url", value="https://images.unsplash.com/photo-1506744038136-46273834b3fb")
|
| 200 |
-
st.slider("배경 이미지 오버레이 (%)", 0, 100, 15, key="bg_overlay_pct")
|
| 201 |
-
st.color_picker("단색 배경 색상", key="bg_color", value="#F1F1F1")
|
| 202 |
|
| 203 |
|
| 204 |
def apply_background():
|
|
|
|
| 188 |
)
|
| 189 |
|
| 190 |
# 고정 이미지 URL
|
| 191 |
+
#BG_URL = "https://plus.unsplash.com/premium_photo-1679830513869-cd3648acb1db?q=80&w=2127&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
|
| 192 |
+
|
| 193 |
+
# === 배경 설정 UI (예시를 위해 일부 추가) ===
|
| 194 |
+
st.sidebar.subheader("🎨 배경 설정")
|
| 195 |
+
st.sidebar.toggle("배경 이미지 사용", key="bg_on", value=True)
|
| 196 |
+
st.sidebar.text_input("배경 이미지 URL", key="bg_url", value="https://images.unsplash.com/photo-1506744038136-46273834b3fb")
|
| 197 |
+
st.sidebar.slider("배경 이미지 오버레이 (%)", 0, 100, 85, key="bg_overlay_pct")
|
| 198 |
+
st.sidebar.color_picker("단색 배경 색상", key="bg_color", value="#F1F1F1", "E3E8E3", "D9E1E2", "F0F0EC")
|
|
|
|
|
|
|
|
|
|
| 199 |
|
| 200 |
|
| 201 |
def apply_background():
|