Spaces:
Running
Running
izammohammed
commited on
Commit
•
73eb3e6
1
Parent(s):
b0ed380
Update app.py
Browse files
app.py
CHANGED
@@ -9,12 +9,12 @@ os.environ["PINECONE_API_KEY"] = st.secrets["PINECONE_API_KEY"]
|
|
9 |
# Sidebar for selecting the chatbot
|
10 |
selected_chatbot = st.sidebar.radio("Select Chatbot", ("OpenAI", "Llama 2"))
|
11 |
if selected_chatbot == "OpenAI":
|
12 |
-
from
|
13 |
elif selected_chatbot == "Llama 2":
|
14 |
st.warning(
|
15 |
"It might take some time to get response becuase of the size of Llama 2 model ⚠️"
|
16 |
)
|
17 |
-
from
|
18 |
|
19 |
# Initialize chat history
|
20 |
if "messages" not in st.session_state:
|
|
|
9 |
# Sidebar for selecting the chatbot
|
10 |
selected_chatbot = st.sidebar.radio("Select Chatbot", ("OpenAI", "Llama 2"))
|
11 |
if selected_chatbot == "OpenAI":
|
12 |
+
from openai_call import openai_call
|
13 |
elif selected_chatbot == "Llama 2":
|
14 |
st.warning(
|
15 |
"It might take some time to get response becuase of the size of Llama 2 model ⚠️"
|
16 |
)
|
17 |
+
from llama_call import llama_call
|
18 |
|
19 |
# Initialize chat history
|
20 |
if "messages" not in st.session_state:
|