Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,13 +31,7 @@ def predict(message, system_prompt="", temperature=0.9, max_new_tokens=4096):
|
|
| 31 |
st.title(TITLE)
|
| 32 |
st.write(DESCRIPTION)
|
| 33 |
|
| 34 |
-
if "messages" not in st.session_state:
|
| 35 |
-
st.session_state.messages = []
|
| 36 |
|
| 37 |
-
# Display chat messages from history on app rerun
|
| 38 |
-
for message in st.session_state.messages:
|
| 39 |
-
with st.chat_message(message["role"]):
|
| 40 |
-
st.markdown(message["content"])
|
| 41 |
|
| 42 |
# React to user input
|
| 43 |
if prompt := st.chat_input("Ask LLama-2-70b anything..."):
|
|
|
|
| 31 |
st.title(TITLE)
|
| 32 |
st.write(DESCRIPTION)
|
| 33 |
|
|
|
|
|
|
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
# React to user input
|
| 37 |
if prompt := st.chat_input("Ask LLama-2-70b anything..."):
|