Increased token limit
Browse files
app.py
CHANGED
@@ -28,6 +28,16 @@ warnings.filterwarnings("ignore")
|
|
28 |
|
29 |
import re
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
def remove_code_blocks(text):
|
32 |
# Remove triple backtick code blocks
|
33 |
text = re.sub(r"```[\s\S]*?```", "", text)
|
@@ -104,6 +114,7 @@ for message in st.session_state.messages:
|
|
104 |
# st.markdown(remove_code_blocks(message["content"]))
|
105 |
st.markdown(message["content"])
|
106 |
|
|
|
107 |
# === Chat Interface ===
|
108 |
if prompt := st.chat_input("Ask a follow-up question..."):
|
109 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
|
|
28 |
|
29 |
import re
|
30 |
|
31 |
+
st.markdown("""
|
32 |
+
<style>
|
33 |
+
[data-testid="stChatMessage"] {
|
34 |
+
background: none !important;
|
35 |
+
border: none !important;
|
36 |
+
padding: 0 !important;
|
37 |
+
}
|
38 |
+
</style>
|
39 |
+
""", unsafe_allow_html=True)
|
40 |
+
|
41 |
def remove_code_blocks(text):
|
42 |
# Remove triple backtick code blocks
|
43 |
text = re.sub(r"```[\s\S]*?```", "", text)
|
|
|
114 |
# st.markdown(remove_code_blocks(message["content"]))
|
115 |
st.markdown(message["content"])
|
116 |
|
117 |
+
|
118 |
# === Chat Interface ===
|
119 |
if prompt := st.chat_input("Ask a follow-up question..."):
|
120 |
st.session_state.messages.append({"role": "user", "content": prompt})
|