Spaces:
Running
Running
samiee2213
commited on
Commit
•
f5e8b1c
1
Parent(s):
0d4c12d
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,8 @@ import matplotlib.pyplot as plt
|
|
13 |
import pandas as pd
|
14 |
import numpy as np
|
15 |
from dotenv import load_dotenv
|
|
|
|
|
16 |
|
17 |
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
18 |
|
@@ -457,7 +459,7 @@ def sidebar():
|
|
457 |
elif selected_model == '4.0':
|
458 |
st.session_state['chat'] = ChatOpenAI(temperature=0, model="gpt-4.0", api_key=api_key)
|
459 |
elif selected_model == 'Gemini':
|
460 |
-
st.session_state['chat'] =
|
461 |
elif selected_model == 'Ollama':
|
462 |
st.session_state['chat'] = ChatOpenAI(temperature=0, model="ollama-1", api_key=api_key)
|
463 |
elif selected_model == 'Mistral':
|
|
|
13 |
import pandas as pd
|
14 |
import numpy as np
|
15 |
from dotenv import load_dotenv
|
16 |
+
from langchain_google_vertexai import ChatVertexAI
|
17 |
+
|
18 |
|
19 |
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
20 |
|
|
|
459 |
elif selected_model == '4.0':
|
460 |
st.session_state['chat'] = ChatOpenAI(temperature=0, model="gpt-4.0", api_key=api_key)
|
461 |
elif selected_model == 'Gemini':
|
462 |
+
st.session_state['chat'] = ChatVertexAI(model="gemini-1.5-flash",api_key=api_key)
|
463 |
elif selected_model == 'Ollama':
|
464 |
st.session_state['chat'] = ChatOpenAI(temperature=0, model="ollama-1", api_key=api_key)
|
465 |
elif selected_model == 'Mistral':
|