Update app.py
Browse files
app.py
CHANGED
@@ -51,3 +51,30 @@ if gpus:
|
|
51 |
# TensorFlow ์คํ ํ์ธ
|
52 |
print("TensorFlow ๋ฒ์ :", tf.__version__)
|
53 |
print("์ฌ์ฉ ๊ฐ๋ฅํ ์ฅ์น:", tf.config.list_physical_devices())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
# TensorFlow ์คํ ํ์ธ
|
52 |
print("TensorFlow ๋ฒ์ :", tf.__version__)
|
53 |
print("์ฌ์ฉ ๊ฐ๋ฅํ ์ฅ์น:", tf.config.list_physical_devices())
|
54 |
+
|
55 |
+
# Base image
|
56 |
+
FROM python:3.10-slim
|
57 |
+
|
58 |
+
# Install Python packages
|
59 |
+
RUN pip install --no-cache-dir pip==22.3.1 \
|
60 |
+
&& pip install --no-cache-dir datasets "huggingface-hub>=0.19" \
|
61 |
+
"hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic~=1.0"
|
62 |
+
|
63 |
+
# Install system packages
|
64 |
+
RUN apt-get update && apt-get install -y \
|
65 |
+
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx \
|
66 |
+
&& rm -rf /var/lib/apt/lists/*
|
67 |
+
|
68 |
+
# Work directory
|
69 |
+
WORKDIR /home/user/app
|
70 |
+
|
71 |
+
# Copy requirements and install additional Python packages
|
72 |
+
COPY requirements.txt .
|
73 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
74 |
+
|
75 |
+
# Copy source code
|
76 |
+
COPY . .
|
77 |
+
|
78 |
+
# Set default command
|
79 |
+
CMD ["streamlit", "run", "app.py"]
|
80 |
+
|