kaleidoskop-hug
commited on
Commit
•
8e38e68
1
Parent(s):
0946b68
Update app.py
Browse files
app.py
CHANGED
@@ -72,6 +72,8 @@ selected_model = st.sidebar.selectbox("Select Model", models)
|
|
72 |
# Create a temperature slider
|
73 |
temp_values = st.sidebar.slider('Select a temperature value', 0.0, 1.0, (0.5))
|
74 |
|
|
|
|
|
75 |
|
76 |
#Add reset button to clear conversation
|
77 |
st.sidebar.button('Reset Chat', on_click=reset_conversation) #Reset button
|
@@ -139,7 +141,7 @@ if prompt := st.chat_input(f"Hi I'm {selected_model}, ask me a question"):
|
|
139 |
],
|
140 |
temperature=temp_values,#0.5,
|
141 |
stream=True,
|
142 |
-
max_tokens=
|
143 |
)
|
144 |
|
145 |
response = st.write_stream(stream)
|
|
|
72 |
# Create a temperature slider
|
73 |
temp_values = st.sidebar.slider('Select a temperature value', 0.0, 1.0, (0.5))
|
74 |
|
75 |
+
# Create a max_token slider
|
76 |
+
max_token_value = st.sidebar.slider('Select a max_token value', 1000, 9000, (5000))
|
77 |
|
78 |
#Add reset button to clear conversation
|
79 |
st.sidebar.button('Reset Chat', on_click=reset_conversation) #Reset button
|
|
|
141 |
],
|
142 |
temperature=temp_values,#0.5,
|
143 |
stream=True,
|
144 |
+
max_tokens=max_token_value,
|
145 |
)
|
146 |
|
147 |
response = st.write_stream(stream)
|