Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- .gitattributes +0 -22
- .gitignore +2 -1
- README.md +1 -11
- docker/Dockerfile +24 -0
.gitattributes
CHANGED
|
@@ -1,24 +1,2 @@
|
|
| 1 |
# Normalize line endings
|
| 2 |
* text=auto
|
| 3 |
-
venv/bin/python filter=lfs diff=lfs merge=lfs -text
|
| 4 |
-
venv/bin/python3 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
-
venv/bin/python3.14 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
venv/bin/𝜋thon filter=lfs diff=lfs merge=lfs -text
|
| 7 |
-
venv/lib/python3.14/site-packages/81d243bd2c585b0f4821__mypyc.cpython-314-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
venv/lib/python3.14/site-packages/chess/__pycache__/__init__.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
venv/lib/python3.14/site-packages/chess/__pycache__/engine.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
venv/lib/python3.14/site-packages/chess/__pycache__/gaviota.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
venv/lib/python3.14/site-packages/chess/__pycache__/pgn.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
venv/lib/python3.14/site-packages/chess/__pycache__/syzygy.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
venv/lib/python3.14/site-packages/pip/_vendor/__pycache__/typing_extensions.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
venv/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/uts46data.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
venv/lib/python3.14/site-packages/pip/_vendor/pkg_resources/__pycache__/__init__.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 16 |
-
venv/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_emoji_codes.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
venv/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/console.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
venv/lib/python3.14/site-packages/pygments/lexers/__pycache__/_cocoa_builtins.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
venv/lib/python3.14/site-packages/pygments/lexers/__pycache__/_lilypond_builtins.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
venv/lib/python3.14/site-packages/pygments/lexers/__pycache__/lisp.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
venv/lib/python3.14/site-packages/pygments/lexers/__pycache__/matlab.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
venv/lib/python3.14/site-packages/rich/__pycache__/_emoji_codes.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
venv/lib/python3.14/site-packages/rich/__pycache__/console.cpython-314.pyc filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
venv/lib/python3.14/site-packages/yaml/_yaml.cpython-314-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
# Normalize line endings
|
| 2 |
* text=auto
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.gitignore
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
**/__pycache__
|
| 3 |
/engines/*
|
| 4 |
!/engines/README.md
|
|
@@ -7,4 +7,5 @@ lichess_bot_auto_logs/*
|
|
| 7 |
.vs/*
|
| 8 |
*.pgn
|
| 9 |
*.log
|
|
|
|
| 10 |
TEMP/*
|
|
|
|
| 1 |
+
*.yml
|
| 2 |
**/__pycache__
|
| 3 |
/engines/*
|
| 4 |
!/engines/README.md
|
|
|
|
| 7 |
.vs/*
|
| 8 |
*.pgn
|
| 9 |
*.log
|
| 10 |
+
*.txt
|
| 11 |
TEMP/*
|
README.md
CHANGED
|
@@ -1,16 +1,6 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Lichess Bot
|
| 3 |
-
emoji: 🤖
|
| 4 |
-
colorFrom: blue
|
| 5 |
-
colorTo: green
|
| 6 |
-
sdk: docker
|
| 7 |
-
app_port: 7860
|
| 8 |
-
pinned: false
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
<div align="center">
|
| 12 |
|
| 13 |
-

|
| 14 |
|
| 15 |
<h1>lichess-bot</h1>
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<div align="center">
|
| 2 |
|
| 3 |
+

|
| 4 |
|
| 5 |
<h1>lichess-bot</h1>
|
| 6 |
|
docker/Dockerfile
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
# Set up the strict Hugging Face user permissions
|
|
@@ -17,3 +40,4 @@ COPY --chown=user . $HOME/app
|
|
| 17 |
|
| 18 |
# Start using our python server wrapper
|
| 19 |
CMD ["python", "app.py"]
|
|
|
|
|
|
| 1 |
+
#ARG VARIANT
|
| 2 |
+
#FROM python:3$VARIANT
|
| 3 |
+
#LABEL org.opencontainers.image.authors="Lichess Bot Devs <lichess.bot.devs@gmail.com>"
|
| 4 |
+
#LABEL org.opencontainers.image.description="A bridge between Lichess API and chess engines"
|
| 5 |
+
#LABEL org.opencontainers.image.source="https://github.com/lichess-bot-devs/lichess-bot"
|
| 6 |
+
#LABEL org.opencontainers.image.documentation="https://github.com/lichess-bot-devs/lichess-bot/wiki/How-to-use-the-Docker-image"
|
| 7 |
+
#LABEL org.opencontainers.image.title="lichess-bot"
|
| 8 |
+
#LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
| 9 |
+
|
| 10 |
+
#ENV LICHESS_BOT_DOCKER="true"
|
| 11 |
+
#ENV PYTHONDONTWRITEBYTECODE=1
|
| 12 |
+
|
| 13 |
+
#ARG LICHESS_DIR=/lichess-bot
|
| 14 |
+
#WORKDIR $LICHESS_DIR
|
| 15 |
+
|
| 16 |
+
#COPY . .
|
| 17 |
+
|
| 18 |
+
#RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
| 19 |
+
|
| 20 |
+
#RUN chmod +x docker/copy_files.sh && ln -s $LICHESS_DIR/config/config.yml config.yml
|
| 21 |
+
|
| 22 |
+
#CMD docker/copy_files.sh && python3 lichess-bot.py ${OPTIONS} --disable_auto_logging
|
| 23 |
+
|
| 24 |
FROM python:3.10-slim
|
| 25 |
|
| 26 |
# Set up the strict Hugging Face user permissions
|
|
|
|
| 40 |
|
| 41 |
# Start using our python server wrapper
|
| 42 |
CMD ["python", "app.py"]
|
| 43 |
+
|