Update app.py
Browse files
app.py
CHANGED
|
@@ -1,26 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
|
| 3 |
-
import pinecone
|
| 4 |
-
from langchain.vectorstores import Pinecone
|
| 5 |
-
from langchain.chains import RetrievalQA
|
| 6 |
-
from transformers import (
|
| 7 |
-
BitsAndBytesConfig,
|
| 8 |
-
AutoConfig,
|
| 9 |
-
AutoModelForCausalLM,
|
| 10 |
-
AutoTokenizer,
|
| 11 |
-
pipeline,
|
| 12 |
-
)
|
| 13 |
-
import os, tempfile
|
| 14 |
-
import torch
|
| 15 |
-
from torch import bfloat16
|
| 16 |
-
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 17 |
-
from langchain.embeddings import HuggingFaceEmbeddings
|
| 18 |
-
from langchain.document_loaders import PyPDFLoader
|
| 19 |
-
from langchain.llms import HuggingFacePipeline
|
| 20 |
-
from streamlit_chat import message
|
| 21 |
from streamlit_option_menu import option_menu
|
| 22 |
-
|
| 23 |
-
import streamlit.components.v1 as components
|
| 24 |
|
| 25 |
|
| 26 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
from streamlit_option_menu import option_menu
|
| 4 |
+
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
|