Spaces:
Runtime error
Runtime error
peterciank
commited on
Commit
•
b496893
1
Parent(s):
d793e41
Update pages/Phase1.py
Browse files- pages/Phase1.py +3 -2
pages/Phase1.py
CHANGED
@@ -52,7 +52,7 @@ def read_pdf(file_path):
|
|
52 |
models = [key for key in model_links.keys()]
|
53 |
|
54 |
selected_model = st.sidebar.selectbox("Select Model", models)
|
55 |
-
temp_values = st.sidebar.slider('Select a temperature value', 0.0, 1.0,
|
56 |
st.sidebar.button('Reset Chat', on_click=reset_conversation)
|
57 |
st.sidebar.write(f"You're now chatting with **{selected_model}**")
|
58 |
st.sidebar.markdown(model_info[selected_model]['description'])
|
@@ -86,7 +86,8 @@ if prompt := st.chat_input(f"Hi I'm {selected_model}, ask me a question"):
|
|
86 |
custom_instruction = "Act like a Human in conversation"
|
87 |
|
88 |
with st.chat_message("user"):
|
89 |
-
st.markdown(prompt
|
|
|
90 |
|
91 |
formatted_prompt = format_prompt(prompt, custom_instruction)
|
92 |
|
|
|
52 |
models = [key for key in model_links.keys()]
|
53 |
|
54 |
selected_model = st.sidebar.selectbox("Select Model", models)
|
55 |
+
temp_values = st.sidebar.slider('Select a temperature value', 0.0, 1.0, 0.5)
|
56 |
st.sidebar.button('Reset Chat', on_click=reset_conversation)
|
57 |
st.sidebar.write(f"You're now chatting with **{selected_model}**")
|
58 |
st.sidebar.markdown(model_info[selected_model]['description'])
|
|
|
86 |
custom_instruction = "Act like a Human in conversation"
|
87 |
|
88 |
with st.chat_message("user"):
|
89 |
+
st.markdown(prompt)
|
90 |
+
st.session_state.messages.append({"role": "user", "content": prompt})
|
91 |
|
92 |
formatted_prompt = format_prompt(prompt, custom_instruction)
|
93 |
|