Spaces:
Sleeping
Sleeping
pragneshbarik
commited on
Commit
·
2dee873
1
Parent(s):
6e67a0c
Improved UI
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ with st.sidebar:
|
|
133 |
label="Temperature", min_value=0.0, max_value=1.0, step=0.1, value=0.9)
|
134 |
|
135 |
st.session_state.max_tokens = st.slider(
|
136 |
-
label="New tokens to generate", min_value = 64, max_value=1048, step=
|
137 |
)
|
138 |
|
139 |
st.session_state.repetion_penalty = st.slider(
|
@@ -206,7 +206,7 @@ if prompt := st.chat_input("Chat with Ikigai Docs..."):
|
|
206 |
|
207 |
if st.session_state["tokens_used"] > 15000 :
|
208 |
st.session_state.history = st.session_state.history[-3:]
|
209 |
-
|
210 |
st.session_state.history.append([prompt, full_response])
|
211 |
st.session_state.history.append(identity_change)
|
212 |
|
|
|
133 |
label="Temperature", min_value=0.0, max_value=1.0, step=0.1, value=0.9)
|
134 |
|
135 |
st.session_state.max_tokens = st.slider(
|
136 |
+
label="New tokens to generate", min_value = 64, max_value=1048, step= 32, value=256
|
137 |
)
|
138 |
|
139 |
st.session_state.repetion_penalty = st.slider(
|
|
|
206 |
|
207 |
if st.session_state["tokens_used"] > 15000 :
|
208 |
st.session_state.history = st.session_state.history[-3:]
|
209 |
+
|
210 |
st.session_state.history.append([prompt, full_response])
|
211 |
st.session_state.history.append(identity_change)
|
212 |
|