Spaces:
Running
Running
AILIXIR Bot commited on
Commit ·
8cfbb87
1
Parent(s): a3fc937
Auto-sync: c0a2b1c92418e642ca2fcec2f17dd1089963c599
Browse files
.github/workflows/sync-hf-all.yml
CHANGED
|
@@ -32,15 +32,6 @@ jobs:
|
|
| 32 |
- uses: actions/checkout@v4
|
| 33 |
with:
|
| 34 |
fetch-depth: 0
|
| 35 |
-
- name: Install Hugging Face CLI
|
| 36 |
-
run: pip install -U "huggingface_hub[cli]"
|
| 37 |
-
- name: Enable AI integration routes
|
| 38 |
-
env:
|
| 39 |
-
HF_TOKEN_AILIXIR: ${{ secrets.HF_TOKEN_AILIXIR }}
|
| 40 |
-
run: |
|
| 41 |
-
hf spaces secrets add Ailixir-AI-Team/ailixir-api \
|
| 42 |
-
-s AI_INTEGRATION_ROUTES_ENABLED=true \
|
| 43 |
-
--token "$HF_TOKEN_AILIXIR"
|
| 44 |
- name: Sync ailixir-api
|
| 45 |
env:
|
| 46 |
HF_TOKEN_AILIXIR: ${{ secrets.HF_TOKEN_AILIXIR }}
|
|
@@ -56,6 +47,7 @@ jobs:
|
|
| 56 |
printf '%s\n' \
|
| 57 |
'RUN_MODE=hf' \
|
| 58 |
'APP_KEY=base64:T/MgQZht16genNJN3aZ5flCuvfe7Zfs4yFhuAFO2itU=' \
|
|
|
|
| 59 |
'APP_URL=https://Ailixir-AI-Team-ailixir-api.hf.space' \
|
| 60 |
'APP_DEBUG=true' \
|
| 61 |
'ADMET_AI_URL=https://shdwRow-ailixir-admet.hf.space' \
|
|
|
|
| 32 |
- uses: actions/checkout@v4
|
| 33 |
with:
|
| 34 |
fetch-depth: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
- name: Sync ailixir-api
|
| 36 |
env:
|
| 37 |
HF_TOKEN_AILIXIR: ${{ secrets.HF_TOKEN_AILIXIR }}
|
|
|
|
| 47 |
printf '%s\n' \
|
| 48 |
'RUN_MODE=hf' \
|
| 49 |
'APP_KEY=base64:T/MgQZht16genNJN3aZ5flCuvfe7Zfs4yFhuAFO2itU=' \
|
| 50 |
+
'AI_INTEGRATION_ROUTES_ENABLED=true' \
|
| 51 |
'APP_URL=https://Ailixir-AI-Team-ailixir-api.hf.space' \
|
| 52 |
'APP_DEBUG=true' \
|
| 53 |
'ADMET_AI_URL=https://shdwRow-ailixir-admet.hf.space' \
|
docker/entrypoint.sh
CHANGED
|
@@ -3,6 +3,9 @@ set -e
|
|
| 3 |
|
| 4 |
cd /var/www/html
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
php artisan config:clear --no-interaction 2>/dev/null || true
|
| 7 |
|
| 8 |
# Create SQLite database file if it doesn't exist
|
|
|
|
| 3 |
|
| 4 |
cd /var/www/html
|
| 5 |
|
| 6 |
+
# Ensure AI integration routes are always enabled at runtime
|
| 7 |
+
echo "AI_INTEGRATION_ROUTES_ENABLED=true" >> /var/www/html/.env
|
| 8 |
+
|
| 9 |
php artisan config:clear --no-interaction 2>/dev/null || true
|
| 10 |
|
| 11 |
# Create SQLite database file if it doesn't exist
|