Spaces:
Sleeping
Sleeping
Commit
·
43acfaf
1
Parent(s):
284df56
Add application file
Browse files- Dockerfile +11 -0
- app.py +11 -0
- requirements.txt +62 -0
Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
RUN useradd -m -u 1000 user
|
3 |
+
USER user
|
4 |
+
ENV HOME=/home/user \
|
5 |
+
PATH=/home/user/.local/bin:$PATH
|
6 |
+
WORKDIR $HOME/app
|
7 |
+
COPY --chown=user . $HOME/app
|
8 |
+
COPY ./requirements.txt $HOME/app/requirements.txt
|
9 |
+
RUN pip install -r requirements.txt
|
10 |
+
COPY . .
|
11 |
+
CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
|
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import chainlit as cl
|
2 |
+
|
3 |
+
import os
|
4 |
+
from dotenv import load_dotenv
|
5 |
+
load_dotenv()
|
6 |
+
|
7 |
+
@cl.on_message
|
8 |
+
async def main(message: cl.Message):
|
9 |
+
await cl.Message(
|
10 |
+
content = "response"
|
11 |
+
).send()
|
requirements.txt
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
aiofiles==23.2.1
|
2 |
+
annotated-types==0.7.0
|
3 |
+
anyio==4.7.0
|
4 |
+
asyncer==0.0.7
|
5 |
+
bidict==0.23.1
|
6 |
+
certifi==2024.12.14
|
7 |
+
chainlit==1.3.2
|
8 |
+
charset-normalizer==3.4.1
|
9 |
+
chevron==0.14.0
|
10 |
+
click==8.1.8
|
11 |
+
dataclasses-json==0.6.7
|
12 |
+
Deprecated==1.2.15
|
13 |
+
exceptiongroup==1.2.2
|
14 |
+
fastapi==0.115.6
|
15 |
+
filetype==1.2.0
|
16 |
+
googleapis-common-protos==1.66.0
|
17 |
+
grpcio==1.68.1
|
18 |
+
h11==0.14.0
|
19 |
+
httpcore==1.0.7
|
20 |
+
httpx==0.28.1
|
21 |
+
idna==3.10
|
22 |
+
importlib_metadata==8.5.0
|
23 |
+
Lazify==0.4.0
|
24 |
+
literalai==0.0.623
|
25 |
+
marshmallow==3.23.2
|
26 |
+
mypy-extensions==1.0.0
|
27 |
+
nest-asyncio==1.6.0
|
28 |
+
numpy==1.26.4
|
29 |
+
opentelemetry-api==1.28.2
|
30 |
+
opentelemetry-exporter-otlp==1.28.2
|
31 |
+
opentelemetry-exporter-otlp-proto-common==1.28.2
|
32 |
+
opentelemetry-exporter-otlp-proto-grpc==1.28.2
|
33 |
+
opentelemetry-exporter-otlp-proto-http==1.28.2
|
34 |
+
opentelemetry-instrumentation==0.49b2
|
35 |
+
opentelemetry-proto==1.28.2
|
36 |
+
opentelemetry-sdk==1.28.2
|
37 |
+
opentelemetry-semantic-conventions==0.49b2
|
38 |
+
packaging==23.2
|
39 |
+
protobuf==5.29.2
|
40 |
+
pydantic==2.10.1
|
41 |
+
pydantic_core==2.27.1
|
42 |
+
PyJWT==2.10.1
|
43 |
+
python-dotenv==1.0.1
|
44 |
+
python-engineio==4.11.2
|
45 |
+
python-multipart==0.0.9
|
46 |
+
python-socketio==5.12.1
|
47 |
+
requests==2.32.3
|
48 |
+
simple-websocket==1.1.0
|
49 |
+
sniffio==1.3.1
|
50 |
+
starlette==0.41.3
|
51 |
+
syncer==2.0.3
|
52 |
+
tomli==2.2.1
|
53 |
+
typing-inspect==0.9.0
|
54 |
+
typing_extensions==4.12.2
|
55 |
+
uptrace==1.28.2
|
56 |
+
urllib3==2.3.0
|
57 |
+
uvicorn==0.25.0
|
58 |
+
watchfiles==0.20.0
|
59 |
+
wrapt==1.17.0
|
60 |
+
wsproto==1.2.0
|
61 |
+
zipp==3.21.0
|
62 |
+
|