Spaces:
Running
Running
Upload 2 files
Browse files- docker +25 -0
- requirements.txt +15 -24
docker
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.12
|
3 |
+
|
4 |
+
# Set the working directory in the container
|
5 |
+
/
|
6 |
+
|
7 |
+
# Copy requirements.txt into the container
|
8 |
+
COPY requirements.txt /requirements.txt
|
9 |
+
|
10 |
+
# Install dependencies
|
11 |
+
RUN pip install --no-cache-dir -r /requirements.txt
|
12 |
+
|
13 |
+
# Copy the application code into the container
|
14 |
+
COPY . /app
|
15 |
+
|
16 |
+
# Expose the Streamlit default port
|
17 |
+
EXPOSE 8501
|
18 |
+
|
19 |
+
# Set environment variables to avoid Streamlit UI prompts
|
20 |
+
ENV STREAMLIT_SERVER_PORT=8501 \
|
21 |
+
STREAMLIT_SERVER_ADDRESS=0.0.0.0 \
|
22 |
+
PYTHONUNBUFFERED=1
|
23 |
+
|
24 |
+
# Command to run the Streamlit app
|
25 |
+
CMD ["streamlit", "run", "app.py"]
|
requirements.txt
CHANGED
@@ -1,24 +1,15 @@
|
|
1 |
-
|
2 |
-
PIL
|
3 |
-
|
4 |
-
cv2
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
PIL
|
17 |
-
streamlit_lottie
|
18 |
-
streamlit_option_menu
|
19 |
-
json
|
20 |
-
transformers
|
21 |
-
streamlit
|
22 |
-
streamlit_modal
|
23 |
-
streamlit.components.v1
|
24 |
-
datetime
|
|
|
1 |
+
pandas
|
2 |
+
Pillow # PIL
|
3 |
+
streamlit
|
4 |
+
opencv-python-headless # cv2
|
5 |
+
streamlit-drawable-canvas
|
6 |
+
torch
|
7 |
+
diffusers
|
8 |
+
numpy
|
9 |
+
streamlit-image-select
|
10 |
+
requests
|
11 |
+
streamlit-navigation-bar
|
12 |
+
langchain-community
|
13 |
+
transformers
|
14 |
+
streamlit-lottie
|
15 |
+
streamlit-option-menu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|