Spaces:
Runtime error
Runtime error
taratrankennedy
commited on
Commit
•
e05602f
1
Parent(s):
0b639c0
Update libraries given deprecation
Browse files
app.py
CHANGED
@@ -2,17 +2,15 @@ from dataclasses import dataclass
|
|
2 |
from typing import Literal
|
3 |
import streamlit as st
|
4 |
import os
|
5 |
-
from
|
6 |
-
from
|
7 |
-
from langchain.embeddings import HuggingFaceEmbeddings
|
8 |
-
import pinecone
|
9 |
-
from langchain.vectorstores import Pinecone
|
10 |
from langchain.prompts import PromptTemplate
|
11 |
from langchain.chains import RetrievalQA
|
12 |
-
import
|
13 |
from langchain_groq import ChatGroq
|
14 |
from langchain.chains import ConversationalRetrievalChain
|
15 |
from langchain.memory import ChatMessageHistory, ConversationBufferMemory
|
|
|
16 |
import time
|
17 |
|
18 |
HUGGINGFACEHUB_API_TOKEN = st.secrets['HUGGINGFACEHUB_API_TOKEN']
|
|
|
2 |
from typing import Literal
|
3 |
import streamlit as st
|
4 |
import os
|
5 |
+
from langchain_community.embeddings import HuggingFaceEmbeddings
|
6 |
+
from langchain_community.vectorstores import Pinecone
|
|
|
|
|
|
|
7 |
from langchain.prompts import PromptTemplate
|
8 |
from langchain.chains import RetrievalQA
|
9 |
+
import streamlit.components.v1 as components
|
10 |
from langchain_groq import ChatGroq
|
11 |
from langchain.chains import ConversationalRetrievalChain
|
12 |
from langchain.memory import ChatMessageHistory, ConversationBufferMemory
|
13 |
+
from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser
|
14 |
import time
|
15 |
|
16 |
HUGGINGFACEHUB_API_TOKEN = st.secrets['HUGGINGFACEHUB_API_TOKEN']
|