taratrankennedy commited on
Commit
e05602f
1 Parent(s): 0b639c0

Update libraries given deprecation

Browse files
Files changed (1) hide show
  1. app.py +4 -6
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 llamaapi import LlamaAPI
6
- from langchain_experimental.llms import ChatLlamaAPI
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 st.components.v1 as components
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']