Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ temperature=temperature/10
|
|
| 45 |
if option=="GPT-4":
|
| 46 |
api_key=st.sidebar.text_input("API Key:",placeholder="Enter OpenAI API Key...")
|
| 47 |
if api_key:
|
| 48 |
-
model=ChatOpenAI(model="gpt-
|
| 49 |
elif option=="Cohere":
|
| 50 |
api_key= st.sidebar.text_input("API Key:",placeholder="Enter Cohere API Key...")
|
| 51 |
if api_key:
|
|
@@ -130,7 +130,7 @@ if st.sidebar.toggle("Advance LinkedIn Post"):
|
|
| 130 |
if url:
|
| 131 |
if api_key:
|
| 132 |
if option=="GPT-4":
|
| 133 |
-
model=ChatOpenAI(model="gpt-
|
| 134 |
elif option=="Cohere":
|
| 135 |
model = ChatCohere(cohere_api_key=api_key,temperature=temperature)
|
| 136 |
if google_api_key:
|
|
|
|
| 45 |
if option=="GPT-4":
|
| 46 |
api_key=st.sidebar.text_input("API Key:",placeholder="Enter OpenAI API Key...")
|
| 47 |
if api_key:
|
| 48 |
+
model=ChatOpenAI(model="gpt-4-turbo-preview" , temperature=temperature , api_key=api_key)
|
| 49 |
elif option=="Cohere":
|
| 50 |
api_key= st.sidebar.text_input("API Key:",placeholder="Enter Cohere API Key...")
|
| 51 |
if api_key:
|
|
|
|
| 130 |
if url:
|
| 131 |
if api_key:
|
| 132 |
if option=="GPT-4":
|
| 133 |
+
model=ChatOpenAI(model="gpt-4-turbo-preview" , temperature=temperature , api_key=api_key)
|
| 134 |
elif option=="Cohere":
|
| 135 |
model = ChatCohere(cohere_api_key=api_key,temperature=temperature)
|
| 136 |
if google_api_key:
|