Spaces:
Sleeping
Sleeping
fix uv issues with hugging face spaces
Browse files- Dockerfile +10 -2
- pyproject.toml +0 -10
Dockerfile
CHANGED
|
@@ -14,8 +14,16 @@ WORKDIR /app
|
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
# Add the .venv/bin directory to the PATH so that chainlit is accessible
|
| 21 |
ENV PATH="/app/.venv/bin:${PATH}"
|
|
|
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
|
| 17 |
+
FROM python:3.10-slim
|
| 18 |
+
|
| 19 |
+
WORKDIR /app
|
| 20 |
+
|
| 21 |
+
COPY . .
|
| 22 |
+
|
| 23 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 24 |
+
|
| 25 |
+
CMD ["chainlit", "run", "app.py", "-w"]
|
| 26 |
+
|
| 27 |
|
| 28 |
# Add the .venv/bin directory to the PATH so that chainlit is accessible
|
| 29 |
ENV PATH="/app/.venv/bin:${PATH}"
|
pyproject.toml
DELETED
|
@@ -1,10 +0,0 @@
|
|
| 1 |
-
[project]
|
| 2 |
-
name = "Teaching_agent"
|
| 3 |
-
version = "0.1.0"
|
| 4 |
-
description = "Teaching agent using OpenAI Agent SDK"
|
| 5 |
-
readme = "README.md"
|
| 6 |
-
requires-python = ">=3.12"
|
| 7 |
-
dependencies = [
|
| 8 |
-
"chainlit>=2.4.400",
|
| 9 |
-
"openai-agents>=0.0.9",
|
| 10 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|