Spaces:
Sleeping
Sleeping
update streamlit_app.py 3
Browse files- streamlit_app.py +1 -1
streamlit_app.py
CHANGED
@@ -67,9 +67,9 @@ def main():
|
|
67 |
st.write(f"**User:** {prompt}")
|
68 |
|
69 |
# Generate response (cached if already asked before)
|
|
|
70 |
if hasattr(st, "chat_message"):
|
71 |
with st.chat_message("assistant"):
|
72 |
-
response = cached_response(prompt)
|
73 |
st.markdown(response)
|
74 |
else:
|
75 |
st.write(f"**Assistant:** {response}")
|
|
|
67 |
st.write(f"**User:** {prompt}")
|
68 |
|
69 |
# Generate response (cached if already asked before)
|
70 |
+
response = cached_response(prompt)
|
71 |
if hasattr(st, "chat_message"):
|
72 |
with st.chat_message("assistant"):
|
|
|
73 |
st.markdown(response)
|
74 |
else:
|
75 |
st.write(f"**Assistant:** {response}")
|