Spaces:
Sleeping
Sleeping
mzimm003
commited on
Commit
·
d288960
1
Parent(s):
c265445
Prepare space
Browse files- Dockerfile +3 -2
- app.py +1 -1
Dockerfile
CHANGED
@@ -13,8 +13,9 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
RUN git clone https://github.com/mzimm003/Chess /app/Chess
|
16 |
-
|
17 |
-
RUN python ./Chess/setup.py
|
|
|
18 |
|
19 |
COPY --chown=user . /app
|
20 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
RUN git clone https://github.com/mzimm003/Chess /app/Chess
|
16 |
+
USER root
|
17 |
+
RUN python ./Chess/setup.py install
|
18 |
+
USER user
|
19 |
|
20 |
COPY --chown=user . /app
|
21 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from my_chess.scripts import HumanVsBot
|
2 |
from my_chess.learner.environments import Chess
|
3 |
|
4 |
from huggingface.pushmodels import DCMinMax
|
|
|
1 |
+
from my_chess.scripts.scripts import HumanVsBot
|
2 |
from my_chess.learner.environments import Chess
|
3 |
|
4 |
from huggingface.pushmodels import DCMinMax
|