Spaces:
Sleeping
Sleeping
Asaad
commited on
Commit
·
d4bbccc
1
Parent(s):
ea36e00
removed incomplete transformers code from main branch, moved to feature branch
Browse files- .devcontainer/Dockerfile +2 -2
- .devcontainer/devcontainer.json +2 -2
- app.py +2 -2
- requirements.txt +2 -1
.devcontainer/Dockerfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
ARG VARIANT="3.10-bookworm"
|
2 |
-
|
3 |
-
FROM langchain/langchain
|
4 |
|
5 |
# [Optional] Uncomment if you want to install an additional version of node using nvm
|
6 |
# ARG EXTRA_NODE_VERSION=10
|
|
|
1 |
ARG VARIANT="3.10-bookworm"
|
2 |
+
FROM mcr.microsoft.com/devcontainers/python:1-${VARIANT}
|
3 |
+
#FROM langchain/langchain
|
4 |
|
5 |
# [Optional] Uncomment if you want to install an additional version of node using nvm
|
6 |
# ARG EXTRA_NODE_VERSION=10
|
.devcontainer/devcontainer.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
2 |
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
3 |
{
|
4 |
-
"name": "
|
5 |
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
6 |
//"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bookworm",
|
7 |
|
@@ -22,7 +22,7 @@
|
|
22 |
// Configure properties specific to VS Code.
|
23 |
"vscode": {
|
24 |
//Add the IDs of extensions you want installed when the container is created.
|
25 |
-
"extensions": ["ms-azuretools.vscode-docker"]
|
26 |
}
|
27 |
} //,
|
28 |
|
|
|
1 |
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
2 |
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
3 |
{
|
4 |
+
"name": "Python 10",
|
5 |
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
6 |
//"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bookworm",
|
7 |
|
|
|
22 |
// Configure properties specific to VS Code.
|
23 |
"vscode": {
|
24 |
//Add the IDs of extensions you want installed when the container is created.
|
25 |
+
"extensions": ["ms-azuretools.vscode-docker", "ms-python.python"]
|
26 |
}
|
27 |
} //,
|
28 |
|
app.py
CHANGED
@@ -31,8 +31,8 @@ from langchain.retrievers.document_compressors import LLMChainExtractor
|
|
31 |
from langchain.retrievers.document_compressors import EmbeddingsFilter
|
32 |
from langchain.retrievers.multi_query import MultiQueryRetriever
|
33 |
# streaming
|
34 |
-
from threading import Thread
|
35 |
-
from transformers import TextIteratorStreamer
|
36 |
|
37 |
|
38 |
# load .env variables
|
|
|
31 |
from langchain.retrievers.document_compressors import EmbeddingsFilter
|
32 |
from langchain.retrievers.multi_query import MultiQueryRetriever
|
33 |
# streaming
|
34 |
+
#from threading import Thread
|
35 |
+
#from transformers import TextIteratorStreamer
|
36 |
|
37 |
|
38 |
# load .env variables
|
requirements.txt
CHANGED
@@ -5,4 +5,5 @@ langchain
|
|
5 |
python-dotenv
|
6 |
bs4
|
7 |
gradio
|
8 |
-
boto3
|
|
|
|
5 |
python-dotenv
|
6 |
bs4
|
7 |
gradio
|
8 |
+
boto3
|
9 |
+
transformers
|