hnfabdllh commited on
Commit
14e1e71
1 Parent(s): c35a47c

Upload 3 files

Browse files
Files changed (3) hide show
  1. ChatBotPDF.ipynb +0 -0
  2. Dockerfile.txt +16 -0
  3. requirements.txt +7 -0
ChatBotPDF.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
Dockerfile.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+ RUN python3 -m pip install --no-cache-dir --upgrade pip
7
+ RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+
9
+ COPY . .
10
+
11
+ CMD ["panel", "serve", "/code/ChatBotPDF.ipynb", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "hnfabdllh-ChatBotPDF.space", "--allow-websocket-origin", "0.0.0.0:7860"]
12
+
13
+ RUN mkdir /.cache
14
+ RUN chmod 777 /.cache
15
+ RUN mkdir .chroma
16
+ RUN chmod 777 .chroma
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ langchain
2
+ openai
3
+ chromadb
4
+ pypdf
5
+ tiktoken
6
+ panel
7
+ notebook