Jobanpreet commited on
Commit
8380f70
·
verified ·
1 Parent(s): 89a1b78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,7 +46,7 @@ if option=="GPT-4":
46
  api_key=st.sidebar.text_input("API Key:",placeholder="Enter OpenAI API Key...")
47
  if api_key:
48
  stream_handler = StreamHandler(st.empty())
49
- model=ChatOpenAI(model="gpt-4-turbo-preview" , temperature=temperature , api_key=api_key , streaming=True, callbacks=[stream_handler])
50
  elif option=="Cohere":
51
  api_key= st.sidebar.text_input("API Key:",placeholder="Enter Cohere API Key...")
52
  if api_key:
@@ -131,7 +131,7 @@ if st.sidebar.toggle("Advance LinkedIn Post"):
131
  if url:
132
  if api_key:
133
  if option=="GPT-4":
134
- model=ChatOpenAI(model="gpt-4-turbo-preview" , temperature=temperature , api_key=api_key)
135
  elif option=="Cohere":
136
  model = ChatCohere(cohere_api_key=api_key,temperature=temperature)
137
  if google_api_key:
 
46
  api_key=st.sidebar.text_input("API Key:",placeholder="Enter OpenAI API Key...")
47
  if api_key:
48
  stream_handler = StreamHandler(st.empty())
49
+ model=ChatOpenAI(model="gpt-4o" , temperature=temperature , api_key=api_key , streaming=True, callbacks=[stream_handler])
50
  elif option=="Cohere":
51
  api_key= st.sidebar.text_input("API Key:",placeholder="Enter Cohere API Key...")
52
  if api_key:
 
131
  if url:
132
  if api_key:
133
  if option=="GPT-4":
134
+ model=ChatOpenAI(model="gpt-4o" , temperature=temperature , api_key=api_key)
135
  elif option=="Cohere":
136
  model = ChatCohere(cohere_api_key=api_key,temperature=temperature)
137
  if google_api_key: