Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ stickers = [
|
|
| 20 |
|
| 21 |
# Streamlit UI setup
|
| 22 |
st.set_page_config(page_title="SkinSense AI", layout="centered")
|
| 23 |
-
st.markdown("<h1 style='text-align:center; color:#5E35B1;'
|
| 24 |
|
| 25 |
# Input form
|
| 26 |
name = st.text_input("Your Name")
|
|
@@ -137,9 +137,9 @@ def skincare_advice(name, gender, age, skin_concern, description, duration, sens
|
|
| 137 |
final_html = f"""
|
| 138 |
<div style='font-family:Arial, sans-serif; color:#111; background:#fff; padding:20px;
|
| 139 |
border-radius:12px; border:1px solid #ccc; box-shadow:0 2px 6px rgba(0,0,0,0.1);'>
|
| 140 |
-
<div style='display:flex; align-items:center; justify-content:space-between;'>
|
| 141 |
<h2 style='color:#000; margin:0;'>👤 <b>{name}</b> | {gender}, {age} yrs</h2>
|
| 142 |
-
<img src="{sticker}" style="width:70px; border-radius:10px;">
|
| 143 |
</div>
|
| 144 |
{image_html}
|
| 145 |
{html_output}
|
|
|
|
| 20 |
|
| 21 |
# Streamlit UI setup
|
| 22 |
st.set_page_config(page_title="SkinSense AI", layout="centered")
|
| 23 |
+
st.markdown("<h1 style='text-align:center; color:#5E35B1;'>🌿 SkinSense AI – Skincare Buddy</h1>", unsafe_allow_html=True)
|
| 24 |
|
| 25 |
# Input form
|
| 26 |
name = st.text_input("Your Name")
|
|
|
|
| 137 |
final_html = f"""
|
| 138 |
<div style='font-family:Arial, sans-serif; color:#111; background:#fff; padding:20px;
|
| 139 |
border-radius:12px; border:1px solid #ccc; box-shadow:0 2px 6px rgba(0,0,0,0.1);'>
|
| 140 |
+
<div style='display:flex; align-items:center; justify-content:space-between; margin-bottom:20px;'>
|
| 141 |
<h2 style='color:#000; margin:0;'>👤 <b>{name}</b> | {gender}, {age} yrs</h2>
|
| 142 |
+
<img src="{sticker}" style="width:70px; height:70px; border-radius:10px; object-fit:cover;" alt="Sticker">
|
| 143 |
</div>
|
| 144 |
{image_html}
|
| 145 |
{html_output}
|