Spaces:
Sleeping
Sleeping
Commit ·
062a362
1
Parent(s): d6c141f
Update Dockerfile with debugging and fix dependencies
Browse files- Dockerfile +8 -1
- requirements.txt +13 -12
Dockerfile
CHANGED
|
@@ -38,6 +38,13 @@ ENV TRANSFORMERS_CACHE=/.cache
|
|
| 38 |
ENV HF_HOME=/.cache
|
| 39 |
ENV CHAINLIT_SERVER_HOST=0.0.0.0
|
| 40 |
ENV CHAINLIT_SERVER_PORT=8000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
# Run the application
|
| 43 |
-
CMD ["
|
|
|
|
| 38 |
ENV HF_HOME=/.cache
|
| 39 |
ENV CHAINLIT_SERVER_HOST=0.0.0.0
|
| 40 |
ENV CHAINLIT_SERVER_PORT=8000
|
| 41 |
+
ENV CHAINLIT_DEBUG=1
|
| 42 |
+
|
| 43 |
+
# Create a startup script
|
| 44 |
+
RUN echo '#!/bin/bash\n\
|
| 45 |
+
echo "Starting Chainlit server..."\n\
|
| 46 |
+
chainlit run app.py --host 0.0.0.0 --port 8000 --headless\n\
|
| 47 |
+
' > /app/start.sh && chmod +x /app/start.sh
|
| 48 |
|
| 49 |
# Run the application
|
| 50 |
+
CMD ["/app/start.sh"]
|
requirements.txt
CHANGED
|
@@ -1,13 +1,14 @@
|
|
| 1 |
-
chainlit
|
| 2 |
-
opencv-python-headless
|
| 3 |
-
numpy
|
| 4 |
-
pillow
|
| 5 |
-
torch
|
| 6 |
-
transformers
|
| 7 |
-
ftfy
|
| 8 |
-
regex
|
| 9 |
-
tqdm
|
| 10 |
-
python-dotenv
|
| 11 |
-
gradio
|
| 12 |
-
huggingface_hub
|
|
|
|
| 13 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
|
|
|
| 1 |
+
chainlit==2.0.0
|
| 2 |
+
opencv-python-headless==4.8.0
|
| 3 |
+
numpy==1.24.0
|
| 4 |
+
pillow==10.0.0
|
| 5 |
+
torch==2.0.0
|
| 6 |
+
transformers==4.30.0
|
| 7 |
+
ftfy==6.1.1
|
| 8 |
+
regex==2023.6.3
|
| 9 |
+
tqdm==4.65.0
|
| 10 |
+
python-dotenv==1.0.0
|
| 11 |
+
gradio==4.0.0
|
| 12 |
+
huggingface_hub==0.19.0
|
| 13 |
+
requests==2.31.0
|
| 14 |
--extra-index-url https://download.pytorch.org/whl/cpu
|