dsmueller commited on
Commit
9f788bf
β€’
1 Parent(s): feb12d6

Add prompts.py and Start.py scripts, update Dockerfile

Browse files
Dockerfile CHANGED
@@ -1,5 +1,11 @@
1
  # Use an official Python runtime as a parent image
2
- FROM python:3.11.1
 
 
 
 
 
 
3
 
4
  # Set the working directory in the container
5
  WORKDIR /usr/src/app
@@ -29,7 +35,7 @@ EXPOSE 8501
29
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
30
 
31
  # An ENTRYPOINT allows you to configure a container that will run as an executable. Here, it also contains the entire streamlit run command for your app, so you don’t have to call it from the command line
32
- ENTRYPOINT ["streamlit", "run", "Start.py", "--server.port=8501", "--server.address=0.0.0.0"]
33
 
34
  # Execute with:
35
  # docker build -t <image_name> .
 
1
  # Use an official Python runtime as a parent image
2
+ FROM python:3.11.5-bookworm
3
+
4
+ # Create the directory (if it doesn't already exist)
5
+ RUN mkdir -p /usr/src/app
6
+
7
+ # Change permissions for /usr/src/app to read/write/execute
8
+ RUN chmod 777 /usr/src/app
9
 
10
  # Set the working directory in the container
11
  WORKDIR /usr/src/app
 
35
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
36
 
37
  # An ENTRYPOINT allows you to configure a container that will run as an executable. Here, it also contains the entire streamlit run command for your app, so you don’t have to call it from the command line
38
+ ENTRYPOINT ["streamlit", "run", "./scripts/Start.py", "--server.port=8501", "--server.address=0.0.0.0"]
39
 
40
  # Execute with:
41
  # docker build -t <image_name> .
requirements.txt DELETED
@@ -1,138 +0,0 @@
1
- aiobotocore==2.8.0
2
- aiohttp==3.9.1
3
- aioitertools==0.11.0
4
- aiosignal==1.3.1
5
- altair==5.2.0
6
- anyio==3.7.1
7
- appnope==0.1.3
8
- asttokens==2.4.1
9
- attrs==23.1.0
10
- blinker==1.7.0
11
- botocore==1.33.1
12
- cachetools==5.3.2
13
- canopy==8.42
14
- canopy-sdk==0.1.3
15
- certifi==2023.11.17
16
- charset-normalizer==3.3.2
17
- click==8.1.7
18
- comm==0.2.0
19
- dataclasses-json==0.6.3
20
- debugpy==1.8.0
21
- decorator==5.1.1
22
- dnspython==2.4.2
23
- executing==2.0.1
24
- fastapi==0.92.0
25
- frozenlist==1.4.0
26
- fsspec==2023.12.1
27
- gcsfs==2023.12.1
28
- gitdb==4.0.11
29
- GitPython==3.1.40
30
- google-api-core==2.15.0
31
- google-auth==2.25.2
32
- google-auth-oauthlib==1.1.0
33
- google-cloud-core==2.4.1
34
- google-cloud-storage==2.13.0
35
- google-crc32c==1.5.0
36
- google-resumable-media==2.6.0
37
- googleapis-common-protos==1.62.0
38
- gunicorn==21.2.0
39
- h11==0.14.0
40
- idna==3.6
41
- importlib-metadata==6.11.0
42
- ipykernel==6.27.1
43
- ipython==8.18.1
44
- jedi==0.19.1
45
- Jinja2==3.1.2
46
- jmespath==1.0.1
47
- joblib==1.3.2
48
- jsonpatch==1.33
49
- jsonpointer==2.4
50
- jsonschema==4.20.0
51
- jsonschema-specifications==2023.11.2
52
- jupyter_client==8.6.0
53
- jupyter_core==5.5.0
54
- langchain==0.0.348
55
- langchain-core==0.0.12
56
- langchainhub==0.1.14
57
- langsmith==0.0.69
58
- loguru==0.7.2
59
- markdown-it-py==3.0.0
60
- MarkupSafe==2.1.3
61
- marshmallow==3.20.1
62
- matplotlib-inline==0.1.6
63
- mdurl==0.1.2
64
- mmh3==3.1.0
65
- multidict==6.0.4
66
- munch==4.0.0
67
- mypy-extensions==1.0.0
68
- nest-asyncio==1.5.8
69
- nltk==3.8.1
70
- numpy==1.25.2
71
- oauthlib==3.2.2
72
- openai==0.27.5
73
- packaging==23.2
74
- pandas==2.1.4
75
- pandas-stubs==2.0.3.230814
76
- parso==0.8.3
77
- pexpect==4.9.0
78
- Pillow==10.1.0
79
- pinecone-client==2.2.4
80
- pinecone-datasets==0.6.2
81
- pinecone-text==0.6.1
82
- platformdirs==4.1.0
83
- prompt-toolkit==3.0.41
84
- protobuf==4.25.1
85
- psutil==5.9.6
86
- ptyprocess==0.7.0
87
- pure-eval==0.2.2
88
- pyarrow==11.0.0
89
- pyasn1==0.5.1
90
- pyasn1-modules==0.3.0
91
- pydantic==1.10.13
92
- pydeck==0.8.0
93
- Pygments==2.17.2
94
- python-dateutil==2.8.2
95
- python-dotenv==1.0.0
96
- pytz==2023.3.post1
97
- PyYAML==6.0.1
98
- pyzmq==25.1.2
99
- referencing==0.32.0
100
- regex==2023.10.3
101
- requests==2.31.0
102
- requests-oauthlib==1.3.1
103
- rich==13.7.0
104
- rpds-py==0.13.2
105
- rsa==4.9
106
- s3fs==2023.12.1
107
- six==1.16.0
108
- smmap==5.0.1
109
- sniffio==1.3.0
110
- SQLAlchemy==2.0.23
111
- sse-starlette==1.8.2
112
- stack-data==0.6.3
113
- starlette==0.25.0
114
- streamlit==1.29.0
115
- tenacity==8.2.3
116
- tiktoken==0.3.3
117
- toml==0.10.2
118
- toolz==0.12.0
119
- tornado==6.4
120
- tqdm==4.66.1
121
- traitlets==5.14.0
122
- types-jsonschema==4.20.0.0
123
- types-pytz==2023.3.1.1
124
- types-PyYAML==6.0.12.12
125
- types-requests==2.31.0.10
126
- types-tqdm==4.66.0.5
127
- typing-inspect==0.9.0
128
- typing_extensions==4.8.0
129
- tzdata==2023.3
130
- tzlocal==5.2
131
- urllib3==2.0.7
132
- uvicorn==0.20.0
133
- validators==0.22.0
134
- wcwidth==0.2.12
135
- wget==3.2
136
- wrapt==1.16.0
137
- yarl==1.9.4
138
- zipp==3.17.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Start.py β†’ scripts/Start.py RENAMED
File without changes
data_import.py β†’ scripts/data_import.py RENAMED
File without changes
{pages β†’ scripts/pages}/1_Chatbot_AMS_Modular.py RENAMED
File without changes
{pages β†’ scripts/pages}/2_Document_Upload.py RENAMED
File without changes
{pages β†’ scripts/pages}/3_Visualize_Data.py RENAMED
File without changes
prompts.py β†’ scripts/prompts.py RENAMED
File without changes
queries.py β†’ scripts/queries.py RENAMED
File without changes
setup.py β†’ scripts/setup.py RENAMED
File without changes