nklomp commited on
Commit
b32c4b4
1 Parent(s): 1f563e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -79,7 +79,7 @@ def get_conversation_chain(vectorstore,selected_llm,selected_temperature):
79
  print('Seleted LLM: ' + selected_llm)
80
  print('Selected Temperature: ' + str(selected_temperature))
81
 
82
- if selected_llm == 'OpenAI':
83
  #openai_model = "gpt-4-turbo-preview"
84
  openai_model = "gpt-3.5-turbo"
85
  llm = ChatOpenAI(model=openai_model,temperature=selected_temperature)
@@ -197,7 +197,7 @@ def main():
197
  "Upload your new PDFs here and click on 'Process' or load the last upload by clicking on 'Load'", accept_multiple_files=True)
198
 
199
  selected_embedding = st.radio("Which Embedding?",["Cohere-multilingual-v3.0","OpenAI", "Instructor-xl"])
200
- selected_llm = st.radio("Which LLM?",["OpenAI", "Llama2"])
201
  selected_temperature = st.slider('Temperature?', 0.0, 1.0, 0.1)
202
 
203
  if st.button("Process"):
 
79
  print('Seleted LLM: ' + selected_llm)
80
  print('Selected Temperature: ' + str(selected_temperature))
81
 
82
+ if selected_llm == 'GPT 3.5':
83
  #openai_model = "gpt-4-turbo-preview"
84
  openai_model = "gpt-3.5-turbo"
85
  llm = ChatOpenAI(model=openai_model,temperature=selected_temperature)
 
197
  "Upload your new PDFs here and click on 'Process' or load the last upload by clicking on 'Load'", accept_multiple_files=True)
198
 
199
  selected_embedding = st.radio("Which Embedding?",["Cohere-multilingual-v3.0","OpenAI", "Instructor-xl"])
200
+ selected_llm = st.radio("Which LLM?",["GPT 3.5", "Llama2"])
201
  selected_temperature = st.slider('Temperature?', 0.0, 1.0, 0.1)
202
 
203
  if st.button("Process"):