Spaces:
Sleeping
Sleeping
fix dependency
Browse files- Dockerfile +6 -18
- README.md +3 -2
Dockerfile
CHANGED
@@ -1,23 +1,11 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
|
4 |
|
5 |
-
|
6 |
|
7 |
-
|
8 |
|
9 |
-
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
RUN git clone --recurse-submodules https://github.com/thu-coai/DA-Transformer.git && git checkout demo && pip install -e .
|
14 |
-
|
15 |
-
RUN cd dag_search && python3 setup.py build_ext --inplace && pip install -e .
|
16 |
-
|
17 |
-
USER user
|
18 |
-
|
19 |
-
COPY --link --chown=1000 --from=lfs /app /home/user/app
|
20 |
-
|
21 |
-
COPY --link --chown=1000 ./ /home/user/app
|
22 |
-
|
23 |
-
CMD ["python3", "app.py"]
|
|
|
1 |
+
FROM python:3.9
|
2 |
|
3 |
+
WORKDIR /code
|
4 |
|
5 |
+
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
+
COPY . .
|
10 |
|
11 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
---
|
2 |
title: DA-Transformer
|
3 |
-
emoji:
|
4 |
colorFrom: red
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
license: apache-2.0
|
9 |
---
|
10 |
|
11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
1 |
---
|
2 |
title: DA-Transformer
|
3 |
+
emoji: ⚡
|
4 |
colorFrom: red
|
5 |
+
colorTo: orange
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
license: apache-2.0
|
9 |
---
|
10 |
|
11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
12 |
+
|