Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,6 +44,18 @@ st.markdown("""
|
|
| 44 |
font-size: 1.4rem;
|
| 45 |
margin-top: 18px;
|
| 46 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
</style>
|
| 48 |
""", unsafe_allow_html=True)
|
| 49 |
|
|
@@ -51,18 +63,20 @@ st.markdown("""
|
|
| 51 |
if "thread_id" not in st.session_state:
|
| 52 |
st.session_state["thread_id"] = None
|
| 53 |
|
| 54 |
-
# Carfind
|
| 55 |
st.markdown(
|
| 56 |
"""
|
| 57 |
<div style='text-align: center; margin-top: 20px; margin-bottom: -10px;'>
|
| 58 |
-
<
|
| 59 |
-
|
|
|
|
|
|
|
| 60 |
</div>
|
| 61 |
""",
|
| 62 |
unsafe_allow_html=True
|
| 63 |
)
|
| 64 |
|
| 65 |
-
#
|
| 66 |
input_col, clear_col = st.columns([9, 1])
|
| 67 |
|
| 68 |
with input_col:
|
|
|
|
| 44 |
font-size: 1.4rem;
|
| 45 |
margin-top: 18px;
|
| 46 |
}
|
| 47 |
+
|
| 48 |
+
/* Logo bounce animation */
|
| 49 |
+
@keyframes bounceIn {
|
| 50 |
+
0% { transform: scale(0.7); opacity: 0; }
|
| 51 |
+
60% { transform: scale(1.1); opacity: 1; }
|
| 52 |
+
80% { transform: scale(0.95); }
|
| 53 |
+
100% { transform: scale(1); }
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
.carfind-logo {
|
| 57 |
+
animation: bounceIn 0.6s ease-out;
|
| 58 |
+
}
|
| 59 |
</style>
|
| 60 |
""", unsafe_allow_html=True)
|
| 61 |
|
|
|
|
| 63 |
if "thread_id" not in st.session_state:
|
| 64 |
st.session_state["thread_id"] = None
|
| 65 |
|
| 66 |
+
# Carfind logo + powered by text (animated)
|
| 67 |
st.markdown(
|
| 68 |
"""
|
| 69 |
<div style='text-align: center; margin-top: 20px; margin-bottom: -10px;'>
|
| 70 |
+
<span style='display: inline-flex; align-items: center; gap: 8px;'>
|
| 71 |
+
<img src='https://www.carfind.co.za/images/Carfind-Icon.svg' width='30' class='carfind-logo'/>
|
| 72 |
+
<span style='font-size: 14px; color: gray;'>Powered by Carfind</span>
|
| 73 |
+
</span>
|
| 74 |
</div>
|
| 75 |
""",
|
| 76 |
unsafe_allow_html=True
|
| 77 |
)
|
| 78 |
|
| 79 |
+
# Chat input + inline clear button
|
| 80 |
input_col, clear_col = st.columns([9, 1])
|
| 81 |
|
| 82 |
with input_col:
|