Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -344,6 +344,7 @@ def page1():
|
|
344 |
background_color = "#ffeecf" if chat[2] == "new" else "#ffeecf" if chat[0] == "User" else "#ffeecf"
|
345 |
new_messages_placeholder.markdown(f"<div style='background-color: {background_color}; padding: 10px; border-radius: 10px; margin: 10px;'>{chat[0]}: {chat[1]}</div>", unsafe_allow_html=True)
|
346 |
|
|
|
347 |
|
348 |
|
349 |
# Clear the input field after the query is made
|
|
|
344 |
background_color = "#ffeecf" if chat[2] == "new" else "#ffeecf" if chat[0] == "User" else "#ffeecf"
|
345 |
new_messages_placeholder.markdown(f"<div style='background-color: {background_color}; padding: 10px; border-radius: 10px; margin: 10px;'>{chat[0]}: {chat[1]}</div>", unsafe_allow_html=True)
|
346 |
|
347 |
+
st.text(f"Response time: {duration:.2f} seconds")
|
348 |
|
349 |
|
350 |
# Clear the input field after the query is made
|