Mpavan45 commited on
Commit
8959c06
·
verified ·
1 Parent(s): 951dccc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -18,7 +18,7 @@ def animated_text(text, speed=0.05):
18
  for letter in text:
19
  displayed_text += letter
20
  placeholder.markdown(f"""
21
- <h1 style="text-align:center; color: #FF4500;">{displayed_text} 🚀</h1>
22
  """, unsafe_allow_html=True) # Corrected f-string formatting
23
  time.sleep(speed)
24
 
@@ -106,8 +106,6 @@ chat = RunnableWithMessageHistory(
106
  # 🔹 Chat history container
107
  chat_container = st.container()
108
 
109
- # 🔹 Always keep input box at the bottom
110
- input_container = st.empty()
111
 
112
  # Load chat history and keep it sticky
113
  if "messages" not in st.session_state:
@@ -121,9 +119,6 @@ with chat_container:
121
  st.markdown(content)
122
  # Display chat history
123
 
124
- for role, content in st.session_state.messages:
125
- with st.chat_message(role):
126
- st.markdown(content)
127
 
128
  with input_container:
129
  # User input at the bottom
 
18
  for letter in text:
19
  displayed_text += letter
20
  placeholder.markdown(f"""
21
+ <h1 style="text-align:center; color: #00D1FF;">{displayed_text} 🚀</h1>
22
  """, unsafe_allow_html=True) # Corrected f-string formatting
23
  time.sleep(speed)
24
 
 
106
  # 🔹 Chat history container
107
  chat_container = st.container()
108
 
 
 
109
 
110
  # Load chat history and keep it sticky
111
  if "messages" not in st.session_state:
 
119
  st.markdown(content)
120
  # Display chat history
121
 
 
 
 
122
 
123
  with input_container:
124
  # User input at the bottom