Upload 3 files
Browse files- Dockerfile +1 -1
- app.py +6 -0
- requirements.txt +34 -110
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
## Use the official python 3.10 image
|
| 2 |
-
FROM python:3.10.
|
| 3 |
|
| 4 |
## Set the working directory to /code
|
| 5 |
WORKDIR /code
|
|
|
|
| 1 |
## Use the official python 3.10 image
|
| 2 |
+
FROM python:3.10.16
|
| 3 |
|
| 4 |
## Set the working directory to /code
|
| 5 |
WORKDIR /code
|
app.py
CHANGED
|
@@ -137,3 +137,9 @@ async def ask_question(request: QuestionRequest):
|
|
| 137 |
return {"answer": response["answer"]}
|
| 138 |
|
| 139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
return {"answer": response["answer"]}
|
| 138 |
|
| 139 |
|
| 140 |
+
@app.get("/")
|
| 141 |
+
def home():
|
| 142 |
+
return {"message": "Welcome to the Text Generation API"}
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
# Run the FastAPI app with Uvicorn
|
requirements.txt
CHANGED
|
@@ -1,211 +1,135 @@
|
|
| 1 |
-
aiohappyeyeballs==2.4.
|
| 2 |
-
aiohttp==3.11.
|
| 3 |
aiosignal==1.3.2
|
| 4 |
-
altair==5.5.0
|
| 5 |
annotated-types==0.7.0
|
| 6 |
anyio==4.8.0
|
| 7 |
-
arxiv==2.1.3
|
| 8 |
asgiref==3.8.1
|
| 9 |
-
asttokens==3.0.0
|
| 10 |
async-timeout==4.0.3
|
| 11 |
attrs==25.1.0
|
| 12 |
backoff==2.2.1
|
| 13 |
bcrypt==4.2.1
|
| 14 |
-
beautifulsoup4==4.12.3
|
| 15 |
-
blinker==1.9.0
|
| 16 |
-
bs4==0.0.2
|
| 17 |
build==1.2.2.post1
|
| 18 |
-
CacheControl==0.14.2
|
| 19 |
cachetools==5.5.1
|
| 20 |
-
certifi==
|
| 21 |
-
cffi==1.17.1
|
| 22 |
charset-normalizer==3.4.1
|
| 23 |
chroma-hnswlib==0.7.6
|
| 24 |
-
chromadb==0.3
|
| 25 |
click==8.1.8
|
| 26 |
colorama==0.4.6
|
| 27 |
coloredlogs==15.0.1
|
| 28 |
-
comm==0.2.2
|
| 29 |
-
cryptography==44.0.0
|
| 30 |
dataclasses-json==0.6.7
|
| 31 |
-
debugpy==1.8.12
|
| 32 |
-
decorator==5.1.1
|
| 33 |
Deprecated==1.2.18
|
| 34 |
distro==1.9.0
|
| 35 |
-
duckdb==1.1.3
|
| 36 |
durationpy==0.9
|
| 37 |
exceptiongroup==1.2.2
|
| 38 |
-
|
| 39 |
-
faiss-cpu==1.9.0.post1
|
| 40 |
-
fastapi==0.115.7
|
| 41 |
-
feedparser==6.0.11
|
| 42 |
filelock==3.17.0
|
| 43 |
-
|
| 44 |
-
flatbuffers==25.1.24
|
| 45 |
frozenlist==1.5.0
|
| 46 |
-
fsspec==
|
| 47 |
-
gitdb==4.0.12
|
| 48 |
-
GitPython==3.1.44
|
| 49 |
-
google-api-core==2.24.1
|
| 50 |
-
google-api-python-client==2.160.0
|
| 51 |
google-auth==2.38.0
|
| 52 |
-
|
| 53 |
-
google-cloud-core==2.4.1
|
| 54 |
-
google-cloud-firestore==2.20.0
|
| 55 |
-
google-cloud-storage==3.0.0
|
| 56 |
-
google-crc32c==1.6.0
|
| 57 |
-
google-resumable-media==2.7.2
|
| 58 |
-
googleapis-common-protos==1.66.0
|
| 59 |
greenlet==3.1.1
|
| 60 |
-
groq==0.
|
| 61 |
grpcio==1.70.0
|
| 62 |
-
grpcio-status==1.70.0
|
| 63 |
h11==0.14.0
|
| 64 |
httpcore==1.0.7
|
| 65 |
-
httplib2==0.22.0
|
| 66 |
httptools==0.6.4
|
| 67 |
httpx==0.28.1
|
| 68 |
httpx-sse==0.4.0
|
| 69 |
-
huggingface-hub==0.28.
|
| 70 |
humanfriendly==10.0
|
| 71 |
idna==3.10
|
| 72 |
importlib_metadata==8.5.0
|
| 73 |
importlib_resources==6.5.2
|
| 74 |
-
ipykernel==6.29.5
|
| 75 |
-
ipython==8.31.0
|
| 76 |
-
jedi==0.19.2
|
| 77 |
Jinja2==3.1.5
|
| 78 |
-
jiter==0.8.2
|
| 79 |
joblib==1.4.2
|
| 80 |
jsonpatch==1.33
|
| 81 |
jsonpointer==3.0.0
|
| 82 |
-
jsonschema==4.23.0
|
| 83 |
-
jsonschema-specifications==2024.10.1
|
| 84 |
-
jupyter_client==8.6.3
|
| 85 |
-
jupyter_core==5.7.2
|
| 86 |
kubernetes==32.0.0
|
| 87 |
-
langchain==0.3.
|
| 88 |
-
langchain-chroma==0.2.
|
| 89 |
-
langchain-community==0.3.
|
| 90 |
-
langchain-core==0.3.
|
| 91 |
-
langchain-groq==0.2.
|
| 92 |
langchain-huggingface==0.1.2
|
| 93 |
-
langchain-
|
| 94 |
-
|
| 95 |
-
langsmith==0.3.2
|
| 96 |
markdown-it-py==3.0.0
|
| 97 |
MarkupSafe==3.0.2
|
| 98 |
-
marshmallow==3.26.
|
| 99 |
-
matplotlib-inline==0.1.7
|
| 100 |
mdurl==0.1.2
|
| 101 |
mmh3==5.1.0
|
| 102 |
monotonic==1.6
|
| 103 |
mpmath==1.3.0
|
| 104 |
-
msgpack==1.1.0
|
| 105 |
multidict==6.1.0
|
| 106 |
mypy-extensions==1.0.0
|
| 107 |
-
narwhals==1.24.1
|
| 108 |
-
nest-asyncio==1.6.0
|
| 109 |
networkx==3.4.2
|
| 110 |
numpy==1.26.4
|
| 111 |
oauthlib==3.2.2
|
| 112 |
onnxruntime==1.20.1
|
| 113 |
-
|
| 114 |
-
opentelemetry-
|
| 115 |
-
opentelemetry-exporter-otlp-proto-
|
| 116 |
-
opentelemetry-
|
| 117 |
-
opentelemetry-instrumentation==0.
|
| 118 |
-
opentelemetry-instrumentation-
|
| 119 |
-
opentelemetry-
|
| 120 |
-
opentelemetry-
|
| 121 |
-
opentelemetry-
|
| 122 |
-
opentelemetry-
|
| 123 |
-
opentelemetry-util-http==0.50b0
|
| 124 |
orjson==3.10.15
|
| 125 |
overrides==7.7.0
|
| 126 |
packaging==24.2
|
| 127 |
-
pandas==2.2.3
|
| 128 |
-
parso==0.8.4
|
| 129 |
pillow==11.1.0
|
| 130 |
-
|
| 131 |
-
posthog==3.11.0
|
| 132 |
-
prompt_toolkit==3.0.50
|
| 133 |
propcache==0.2.1
|
| 134 |
-
proto-plus==1.26.0
|
| 135 |
protobuf==5.29.3
|
| 136 |
-
psutil==6.1.1
|
| 137 |
-
pure_eval==0.2.3
|
| 138 |
-
pyarrow==19.0.0
|
| 139 |
pyasn1==0.6.1
|
| 140 |
pyasn1_modules==0.4.1
|
| 141 |
-
pycparser==2.22
|
| 142 |
pydantic==2.10.6
|
| 143 |
pydantic-settings==2.7.1
|
| 144 |
pydantic_core==2.27.2
|
| 145 |
-
pydeck==0.9.1
|
| 146 |
Pygments==2.19.1
|
| 147 |
-
PyJWT==2.10.1
|
| 148 |
-
PyMuPDF==1.25.2
|
| 149 |
-
pyparsing==3.2.1
|
| 150 |
-
pypdf==5.2.0
|
| 151 |
PyPika==0.48.9
|
| 152 |
pyproject_hooks==1.2.0
|
| 153 |
pyreadline3==3.5.4
|
| 154 |
python-dateutil==2.9.0.post0
|
| 155 |
python-dotenv==1.0.1
|
| 156 |
python-multipart==0.0.20
|
| 157 |
-
pytz==2024.2
|
| 158 |
PyYAML==6.0.2
|
| 159 |
-
pyzmq==26.2.0
|
| 160 |
-
referencing==0.36.2
|
| 161 |
regex==2024.11.6
|
| 162 |
requests==2.32.3
|
| 163 |
requests-oauthlib==2.0.0
|
| 164 |
requests-toolbelt==1.0.0
|
| 165 |
rich==13.9.4
|
| 166 |
-
rpds-py==0.22.3
|
| 167 |
rsa==4.9
|
| 168 |
safetensors==0.5.2
|
| 169 |
scikit-learn==1.6.1
|
| 170 |
scipy==1.15.1
|
| 171 |
-
sentence-transformers==3.4.
|
| 172 |
-
sgmllib3k==1.0.0
|
| 173 |
shellingham==1.5.4
|
| 174 |
six==1.17.0
|
| 175 |
-
smmap==5.0.2
|
| 176 |
sniffio==1.3.1
|
| 177 |
-
|
| 178 |
-
SQLAlchemy==2.0.37
|
| 179 |
-
stack-data==0.6.3
|
| 180 |
starlette==0.45.3
|
| 181 |
-
streamlit==1.41.1
|
| 182 |
sympy==1.13.1
|
| 183 |
tenacity==9.0.0
|
| 184 |
threadpoolctl==3.5.0
|
| 185 |
-
tiktoken==0.8.0
|
| 186 |
tokenizers==0.21.0
|
| 187 |
-
toml==0.10.2
|
| 188 |
tomli==2.2.1
|
| 189 |
-
torch==2.
|
| 190 |
-
tornado==6.4.2
|
| 191 |
tqdm==4.67.1
|
| 192 |
-
|
| 193 |
-
transformers==4.48.1
|
| 194 |
typer==0.15.1
|
| 195 |
typing-inspect==0.9.0
|
| 196 |
typing_extensions==4.12.2
|
| 197 |
-
tzdata==2025.1
|
| 198 |
-
uritemplate==4.1.1
|
| 199 |
urllib3==2.3.0
|
| 200 |
uvicorn==0.34.0
|
| 201 |
-
watchdog==6.0.0
|
| 202 |
watchfiles==1.0.4
|
| 203 |
-
wcwidth==0.2.13
|
| 204 |
websocket-client==1.8.0
|
| 205 |
-
websockets==
|
| 206 |
-
wikipedia==1.4.0
|
| 207 |
wrapt==1.17.2
|
| 208 |
yarl==1.18.3
|
| 209 |
zipp==3.21.0
|
| 210 |
zstandard==0.23.0
|
| 211 |
-
# sqlite3==3.35.0 # Added compatible version of sqlite3
|
|
|
|
| 1 |
+
aiohappyeyeballs==2.4.6
|
| 2 |
+
aiohttp==3.11.12
|
| 3 |
aiosignal==1.3.2
|
|
|
|
| 4 |
annotated-types==0.7.0
|
| 5 |
anyio==4.8.0
|
|
|
|
| 6 |
asgiref==3.8.1
|
|
|
|
| 7 |
async-timeout==4.0.3
|
| 8 |
attrs==25.1.0
|
| 9 |
backoff==2.2.1
|
| 10 |
bcrypt==4.2.1
|
|
|
|
|
|
|
|
|
|
| 11 |
build==1.2.2.post1
|
|
|
|
| 12 |
cachetools==5.5.1
|
| 13 |
+
certifi==2025.1.31
|
|
|
|
| 14 |
charset-normalizer==3.4.1
|
| 15 |
chroma-hnswlib==0.7.6
|
| 16 |
+
chromadb==0.6.3
|
| 17 |
click==8.1.8
|
| 18 |
colorama==0.4.6
|
| 19 |
coloredlogs==15.0.1
|
|
|
|
|
|
|
| 20 |
dataclasses-json==0.6.7
|
|
|
|
|
|
|
| 21 |
Deprecated==1.2.18
|
| 22 |
distro==1.9.0
|
|
|
|
| 23 |
durationpy==0.9
|
| 24 |
exceptiongroup==1.2.2
|
| 25 |
+
fastapi==0.115.8
|
|
|
|
|
|
|
|
|
|
| 26 |
filelock==3.17.0
|
| 27 |
+
flatbuffers==25.2.10
|
|
|
|
| 28 |
frozenlist==1.5.0
|
| 29 |
+
fsspec==2025.2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
google-auth==2.38.0
|
| 31 |
+
googleapis-common-protos==1.67.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
greenlet==3.1.1
|
| 33 |
+
groq==0.18.0
|
| 34 |
grpcio==1.70.0
|
|
|
|
| 35 |
h11==0.14.0
|
| 36 |
httpcore==1.0.7
|
|
|
|
| 37 |
httptools==0.6.4
|
| 38 |
httpx==0.28.1
|
| 39 |
httpx-sse==0.4.0
|
| 40 |
+
huggingface-hub==0.28.1
|
| 41 |
humanfriendly==10.0
|
| 42 |
idna==3.10
|
| 43 |
importlib_metadata==8.5.0
|
| 44 |
importlib_resources==6.5.2
|
|
|
|
|
|
|
|
|
|
| 45 |
Jinja2==3.1.5
|
|
|
|
| 46 |
joblib==1.4.2
|
| 47 |
jsonpatch==1.33
|
| 48 |
jsonpointer==3.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
kubernetes==32.0.0
|
| 50 |
+
langchain==0.3.18
|
| 51 |
+
langchain-chroma==0.2.2
|
| 52 |
+
langchain-community==0.3.17
|
| 53 |
+
langchain-core==0.3.35
|
| 54 |
+
langchain-groq==0.2.4
|
| 55 |
langchain-huggingface==0.1.2
|
| 56 |
+
langchain-text-splitters==0.3.6
|
| 57 |
+
langsmith==0.3.8
|
|
|
|
| 58 |
markdown-it-py==3.0.0
|
| 59 |
MarkupSafe==3.0.2
|
| 60 |
+
marshmallow==3.26.1
|
|
|
|
| 61 |
mdurl==0.1.2
|
| 62 |
mmh3==5.1.0
|
| 63 |
monotonic==1.6
|
| 64 |
mpmath==1.3.0
|
|
|
|
| 65 |
multidict==6.1.0
|
| 66 |
mypy-extensions==1.0.0
|
|
|
|
|
|
|
| 67 |
networkx==3.4.2
|
| 68 |
numpy==1.26.4
|
| 69 |
oauthlib==3.2.2
|
| 70 |
onnxruntime==1.20.1
|
| 71 |
+
opentelemetry-api==1.30.0
|
| 72 |
+
opentelemetry-exporter-otlp-proto-common==1.30.0
|
| 73 |
+
opentelemetry-exporter-otlp-proto-grpc==1.30.0
|
| 74 |
+
opentelemetry-instrumentation==0.51b0
|
| 75 |
+
opentelemetry-instrumentation-asgi==0.51b0
|
| 76 |
+
opentelemetry-instrumentation-fastapi==0.51b0
|
| 77 |
+
opentelemetry-proto==1.30.0
|
| 78 |
+
opentelemetry-sdk==1.30.0
|
| 79 |
+
opentelemetry-semantic-conventions==0.51b0
|
| 80 |
+
opentelemetry-util-http==0.51b0
|
|
|
|
| 81 |
orjson==3.10.15
|
| 82 |
overrides==7.7.0
|
| 83 |
packaging==24.2
|
|
|
|
|
|
|
| 84 |
pillow==11.1.0
|
| 85 |
+
posthog==3.13.0
|
|
|
|
|
|
|
| 86 |
propcache==0.2.1
|
|
|
|
| 87 |
protobuf==5.29.3
|
|
|
|
|
|
|
|
|
|
| 88 |
pyasn1==0.6.1
|
| 89 |
pyasn1_modules==0.4.1
|
|
|
|
| 90 |
pydantic==2.10.6
|
| 91 |
pydantic-settings==2.7.1
|
| 92 |
pydantic_core==2.27.2
|
|
|
|
| 93 |
Pygments==2.19.1
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
PyPika==0.48.9
|
| 95 |
pyproject_hooks==1.2.0
|
| 96 |
pyreadline3==3.5.4
|
| 97 |
python-dateutil==2.9.0.post0
|
| 98 |
python-dotenv==1.0.1
|
| 99 |
python-multipart==0.0.20
|
|
|
|
| 100 |
PyYAML==6.0.2
|
|
|
|
|
|
|
| 101 |
regex==2024.11.6
|
| 102 |
requests==2.32.3
|
| 103 |
requests-oauthlib==2.0.0
|
| 104 |
requests-toolbelt==1.0.0
|
| 105 |
rich==13.9.4
|
|
|
|
| 106 |
rsa==4.9
|
| 107 |
safetensors==0.5.2
|
| 108 |
scikit-learn==1.6.1
|
| 109 |
scipy==1.15.1
|
| 110 |
+
sentence-transformers==3.4.1
|
|
|
|
| 111 |
shellingham==1.5.4
|
| 112 |
six==1.17.0
|
|
|
|
| 113 |
sniffio==1.3.1
|
| 114 |
+
SQLAlchemy==2.0.38
|
|
|
|
|
|
|
| 115 |
starlette==0.45.3
|
|
|
|
| 116 |
sympy==1.13.1
|
| 117 |
tenacity==9.0.0
|
| 118 |
threadpoolctl==3.5.0
|
|
|
|
| 119 |
tokenizers==0.21.0
|
|
|
|
| 120 |
tomli==2.2.1
|
| 121 |
+
torch==2.6.0
|
|
|
|
| 122 |
tqdm==4.67.1
|
| 123 |
+
transformers==4.48.3
|
|
|
|
| 124 |
typer==0.15.1
|
| 125 |
typing-inspect==0.9.0
|
| 126 |
typing_extensions==4.12.2
|
|
|
|
|
|
|
| 127 |
urllib3==2.3.0
|
| 128 |
uvicorn==0.34.0
|
|
|
|
| 129 |
watchfiles==1.0.4
|
|
|
|
| 130 |
websocket-client==1.8.0
|
| 131 |
+
websockets==15.0
|
|
|
|
| 132 |
wrapt==1.17.2
|
| 133 |
yarl==1.18.3
|
| 134 |
zipp==3.21.0
|
| 135 |
zstandard==0.23.0
|
|
|