Promotingai commited on
Commit
5f30902
·
verified ·
1 Parent(s): a71ca1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -8,6 +8,9 @@ openai_api_key = os.getenv("OPENAI_API_KEY")
8
  st.title("💬 Chatbot")
9
  st.caption("")
10
 
 
 
 
11
  # Initialize session state for storing messages if it doesn't already exist
12
  if "messages" not in st.session_state:
13
  st.session_state["messages"] = [{"role": "assistant", "content": "How can I help you?"}]
@@ -38,5 +41,4 @@ if prompt:
38
  st.session_state.messages.append({"role": "assistant", "content": msg})
39
  st.chat_message("assistant").write(msg)
40
 
41
- # Select model using a dropdown
42
- model_choice = st.selectbox('Choose a model:', ['gpt-3.5-turbo', 'gpt-4-turbo'])
 
8
  st.title("💬 Chatbot")
9
  st.caption("")
10
 
11
+ # Select model using a dropdown
12
+ model_choice = st.selectbox('Choose a model:', ['gpt-3.5-turbo', 'gpt-4-turbo'])
13
+
14
  # Initialize session state for storing messages if it doesn't already exist
15
  if "messages" not in st.session_state:
16
  st.session_state["messages"] = [{"role": "assistant", "content": "How can I help you?"}]
 
41
  st.session_state.messages.append({"role": "assistant", "content": msg})
42
  st.chat_message("assistant").write(msg)
43
 
44
+