Spaces:
Paused
Paused
Create hf_entrypoint.sh
Browse files- hf_entrypoint.sh +7 -0
hf_entrypoint.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
# Start db_syncer in background
|
| 3 |
+
if [ -n "$HF_TOKEN" ] && [ -n "$HF_REPO_ID" ]; then
|
| 4 |
+
python3 /usr/local/bin/db_syncer.py &
|
| 5 |
+
fi
|
| 6 |
+
# Hand off to original baked entrypoint
|
| 7 |
+
exec /usr/local/bin/sqlite_entrypoint.sh "$@"
|