Upload folder using huggingface_hub
Browse files- lichess-bot/start_bot.py +3 -0
- requirements.txt +3 -2
- start.sh +1 -1
lichess-bot/start_bot.py
CHANGED
|
@@ -20,6 +20,9 @@ def main():
|
|
| 20 |
with open("config.yml", "w") as f:
|
| 21 |
yaml.dump(config, f)
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
print("Executing lichess-bot...")
|
| 24 |
os.system("python3 lichess-bot.py")
|
| 25 |
|
|
|
|
| 20 |
with open("config.yml", "w") as f:
|
| 21 |
yaml.dump(config, f)
|
| 22 |
|
| 23 |
+
print("Upgrading account to bot status just in case...")
|
| 24 |
+
os.system("python3 lichess-bot.py -u")
|
| 25 |
+
|
| 26 |
print("Executing lichess-bot...")
|
| 27 |
os.system("python3 lichess-bot.py")
|
| 28 |
|
requirements.txt
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
fastapi
|
| 2 |
uvicorn
|
| 3 |
-
|
| 4 |
-
pyyaml
|
|
|
|
| 1 |
+
chess~=1.11
|
| 2 |
+
PyYAML~=6.0
|
| 3 |
fastapi
|
| 4 |
uvicorn
|
| 5 |
+
jinja2
|
|
|
start.sh
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
echo "Starting
|
| 4 |
python3 app.py &
|
| 5 |
|
| 6 |
echo "Starting Lichess Bot..."
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
echo "Starting FastAPI Web Server..."
|
| 4 |
python3 app.py &
|
| 5 |
|
| 6 |
echo "Starting Lichess Bot..."
|