thomas-yanxin
commited on
Commit
•
3f391e5
1
Parent(s):
7f4b473
compress-gpt
Browse files- app.py +1 -2
- requirements.txt +1 -0
app.py
CHANGED
@@ -6,13 +6,12 @@ import gradio as gr
|
|
6 |
import nltk
|
7 |
import sentence_transformers
|
8 |
import torch
|
|
|
9 |
from duckduckgo_search import ddg
|
10 |
from duckduckgo_search.utils import SESSION
|
11 |
from langchain.chains import RetrievalQA
|
12 |
from langchain.document_loaders import UnstructuredFileLoader
|
13 |
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
|
14 |
-
from langchain.prompts import PromptTemplate
|
15 |
-
from langchain.prompts.prompt import PromptTemplate
|
16 |
from langchain.vectorstores import FAISS
|
17 |
|
18 |
from chatllm import ChatLLM
|
|
|
6 |
import nltk
|
7 |
import sentence_transformers
|
8 |
import torch
|
9 |
+
from compress_gpt.langchain import CompressPrompt as PromptTemplate
|
10 |
from duckduckgo_search import ddg
|
11 |
from duckduckgo_search.utils import SESSION
|
12 |
from langchain.chains import RetrievalQA
|
13 |
from langchain.document_loaders import UnstructuredFileLoader
|
14 |
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
|
|
|
|
|
15 |
from langchain.vectorstores import FAISS
|
16 |
|
17 |
from chatllm import ChatLLM
|
requirements.txt
CHANGED
@@ -15,3 +15,4 @@ gradio
|
|
15 |
nltk
|
16 |
torch
|
17 |
torchvision
|
|
|
|
15 |
nltk
|
16 |
torch
|
17 |
torchvision
|
18 |
+
compress-gpt
|