Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -366,9 +366,9 @@ for message in st.session_state.chat_history:
|
|
| 366 |
|
| 367 |
# Chat input
|
| 368 |
if not st.session_state.chat_active:
|
| 369 |
-
|
| 370 |
|
| 371 |
-
|
| 372 |
<script>
|
| 373 |
document.addEventListener('DOMContentLoaded', (event) => {
|
| 374 |
const svgs = document.querySelectorAll('svg');
|
|
@@ -464,8 +464,7 @@ if not st.session_state.chat_active:
|
|
| 464 |
|
| 465 |
""", unsafe_allow_html=True)
|
| 466 |
|
| 467 |
-
|
| 468 |
-
content_placeholder.empty()
|
| 469 |
|
| 470 |
def clean_text_for_markdown(text):
|
| 471 |
# Ensure consistent spacing and remove any unwanted characters
|
|
|
|
| 366 |
|
| 367 |
# Chat input
|
| 368 |
if not st.session_state.chat_active:
|
| 369 |
+
|
| 370 |
|
| 371 |
+
st.markdown("""
|
| 372 |
<script>
|
| 373 |
document.addEventListener('DOMContentLoaded', (event) => {
|
| 374 |
const svgs = document.querySelectorAll('svg');
|
|
|
|
| 464 |
|
| 465 |
""", unsafe_allow_html=True)
|
| 466 |
|
| 467 |
+
|
|
|
|
| 468 |
|
| 469 |
def clean_text_for_markdown(text):
|
| 470 |
# Ensure consistent spacing and remove any unwanted characters
|