Spaces:
Runtime error
Runtime error
version 1
Browse files
app.py
CHANGED
|
@@ -38,6 +38,7 @@ if not st.session_state.cleanup_done:
|
|
| 38 |
if not os.path.exists(UPLOAD_DIR):
|
| 39 |
os.makedirs(UPLOAD_DIR, exist_ok=True)
|
| 40 |
|
|
|
|
| 41 |
# Custom CSS for Wattpad-like theme with background and header
|
| 42 |
st.markdown(
|
| 43 |
"""
|
|
@@ -77,21 +78,26 @@ st.markdown(
|
|
| 77 |
gap: 10px;
|
| 78 |
padding-top: 50px;
|
| 79 |
}
|
|
|
|
|
|
|
|
|
|
| 80 |
</style>
|
| 81 |
""",
|
| 82 |
unsafe_allow_html=True
|
| 83 |
)
|
| 84 |
|
| 85 |
-
# Wattpad-like header
|
| 86 |
st.markdown(
|
| 87 |
"""
|
| 88 |
<div class="header" style="display: flex; align-items: center; gap: 10px;">
|
| 89 |
-
<
|
|
|
|
| 90 |
</div>
|
| 91 |
""",
|
| 92 |
unsafe_allow_html=True
|
| 93 |
)
|
| 94 |
|
|
|
|
| 95 |
# Spacer to push chatbot below the header
|
| 96 |
st.write("<div style='height: 100px;'></div>", unsafe_allow_html=True)
|
| 97 |
|
|
|
|
| 38 |
if not os.path.exists(UPLOAD_DIR):
|
| 39 |
os.makedirs(UPLOAD_DIR, exist_ok=True)
|
| 40 |
|
| 41 |
+
# Custom CSS for Wattpad-like theme with background and header
|
| 42 |
# Custom CSS for Wattpad-like theme with background and header
|
| 43 |
st.markdown(
|
| 44 |
"""
|
|
|
|
| 78 |
gap: 10px;
|
| 79 |
padding-top: 50px;
|
| 80 |
}
|
| 81 |
+
.header img {
|
| 82 |
+
height: 50px;
|
| 83 |
+
}
|
| 84 |
</style>
|
| 85 |
""",
|
| 86 |
unsafe_allow_html=True
|
| 87 |
)
|
| 88 |
|
| 89 |
+
# Wattpad-like header with local SVG logo
|
| 90 |
st.markdown(
|
| 91 |
"""
|
| 92 |
<div class="header" style="display: flex; align-items: center; gap: 10px;">
|
| 93 |
+
<img src="wattpad_logo.svg" alt="Wattpad Logo" style="height: 50px;">
|
| 94 |
+
<h1 style="color: #FF5000; font-weight: bold;">Hi, we're Wattpad.</h1>
|
| 95 |
</div>
|
| 96 |
""",
|
| 97 |
unsafe_allow_html=True
|
| 98 |
)
|
| 99 |
|
| 100 |
+
|
| 101 |
# Spacer to push chatbot below the header
|
| 102 |
st.write("<div style='height: 100px;'></div>", unsafe_allow_html=True)
|
| 103 |
|