AILIXIR Bot commited on
Commit
5d1add9
Β·
1 Parent(s): 721105e

Auto-sync: f5ce6ac77794a3b45f6053fe4c4a770721c82ec1

Browse files
Files changed (3) hide show
  1. .github/workflows/sync-hf-all.yml +10 -20
  2. README.md +24 -0
  3. README_HF.md +24 -0
.github/workflows/sync-hf-all.yml CHANGED
@@ -20,11 +20,9 @@ jobs:
20
  REPO_URL="https://RottenShadow:${HF_TOKEN}@huggingface.co/spaces/${SPACE}"
21
  git clone --depth 1 "$REPO_URL" /tmp/hf-space
22
  cd /tmp/hf-space
23
- mkdir -p /tmp/hf-preserve
24
- for f in README.md Dockerfile .gitattributes; do cp "$f" /tmp/hf-preserve/ 2>/dev/null || true; done
25
  find . -maxdepth 1 -not -name .git -not -name . -not -name .. -exec rm -rf {} +
26
- cp /tmp/hf-preserve/* . 2>/dev/null || true
27
  rsync -av --exclude=ai_apps --exclude=.git --exclude=.env --exclude=public/imgs --exclude=storage --exclude=Diagrams "$GITHUB_WORKSPACE/" .
 
28
  echo "RUN_MODE=hf" >> .env
29
  git config user.name "AILIXIR Bot"
30
  git config user.email "bot@ailixir.app"
@@ -45,11 +43,9 @@ jobs:
45
  REPO_URL="https://RottenShadow:${HF_TOKEN}@huggingface.co/spaces/${SPACE}"
46
  git clone --depth 1 "$REPO_URL" /tmp/hf-space
47
  cd /tmp/hf-space
48
- mkdir -p /tmp/hf-preserve
49
- for f in README.md Dockerfile .gitattributes; do cp "$f" /tmp/hf-preserve/ 2>/dev/null || true; done
50
  find . -maxdepth 1 -not -name .git -not -name . -not -name .. -exec rm -rf {} +
51
- cp /tmp/hf-preserve/* . 2>/dev/null || true
52
- rsync -av --exclude=__pycache__ --exclude='*.pyc' --exclude=digrams --exclude=docs --exclude=docker --exclude=README.md "$GITHUB_WORKSPACE/ai_apps/Drug Reporposing/" .
53
  if [ -f Dockerfile.hf ]; then mv Dockerfile.hf Dockerfile; fi
54
  git config user.name "AILIXIR Bot"
55
  git config user.email "bot@ailixir.app"
@@ -70,11 +66,9 @@ jobs:
70
  REPO_URL="https://RottenShadow:${HF_TOKEN}@huggingface.co/spaces/${SPACE}"
71
  git clone --depth 1 "$REPO_URL" /tmp/hf-space
72
  cd /tmp/hf-space
73
- mkdir -p /tmp/hf-preserve
74
- for f in README.md Dockerfile .gitattributes; do cp "$f" /tmp/hf-preserve/ 2>/dev/null || true; done
75
  find . -maxdepth 1 -not -name .git -not -name . -not -name .. -exec rm -rf {} +
76
- cp /tmp/hf-preserve/* . 2>/dev/null || true
77
- rsync -av --exclude=README.md --exclude=datasets.rar --exclude='*.ckpt' "$GITHUB_WORKSPACE/ai_apps/ADMIT/" .
78
  git config user.name "AILIXIR Bot"
79
  git config user.email "bot@ailixir.app"
80
  git config lfs.allowincompletepush true
@@ -95,11 +89,9 @@ jobs:
95
  REPO_URL="https://RottenShadow:${HF_TOKEN}@huggingface.co/spaces/${SPACE}"
96
  git clone --depth 1 "$REPO_URL" /tmp/hf-space
97
  cd /tmp/hf-space
98
- mkdir -p /tmp/hf-preserve
99
- for f in README.md Dockerfile .gitattributes; do cp "$f" /tmp/hf-preserve/ 2>/dev/null || true; done
100
  find . -maxdepth 1 -not -name .git -not -name . -not -name .. -exec rm -rf {} +
101
- cp /tmp/hf-preserve/* . 2>/dev/null || true
102
- rsync -av --exclude=README.md --exclude=digrams "$GITHUB_WORKSPACE/ai_apps/chemical-rag-system/" .
103
  git config user.name "AILIXIR Bot"
104
  git config user.email "bot@ailixir.app"
105
  git add -A
@@ -119,12 +111,10 @@ jobs:
119
  REPO_URL="https://RottenShadow:${HF_TOKEN}@huggingface.co/spaces/${SPACE}"
120
  git clone --depth 1 "$REPO_URL" /tmp/hf-space
121
  cd /tmp/hf-space
122
- mkdir -p /tmp/hf-preserve
123
- for f in README.md Dockerfile .gitattributes; do cp "$f" /tmp/hf-preserve/ 2>/dev/null || true; done
124
  find . -maxdepth 1 -not -name .git -not -name . -not -name .. -exec rm -rf {} +
125
- cp /tmp/hf-preserve/* . 2>/dev/null || true
126
- rsync -av --exclude=README.md --exclude=bundle/models "$GITHUB_WORKSPACE/ai_apps/generation/" .
127
- if [ -f Dockerfile.api ]; then mv Dockerfile.api Dockerfile; fi
128
  git config user.name "AILIXIR Bot"
129
  git config user.email "bot@ailixir.app"
130
  git config lfs.allowincompletepush true
 
20
  REPO_URL="https://RottenShadow:${HF_TOKEN}@huggingface.co/spaces/${SPACE}"
21
  git clone --depth 1 "$REPO_URL" /tmp/hf-space
22
  cd /tmp/hf-space
 
 
23
  find . -maxdepth 1 -not -name .git -not -name . -not -name .. -exec rm -rf {} +
 
24
  rsync -av --exclude=ai_apps --exclude=.git --exclude=.env --exclude=public/imgs --exclude=storage --exclude=Diagrams "$GITHUB_WORKSPACE/" .
25
+ cp "$GITHUB_WORKSPACE/README_HF.md" README.md 2>/dev/null || true
26
  echo "RUN_MODE=hf" >> .env
27
  git config user.name "AILIXIR Bot"
28
  git config user.email "bot@ailixir.app"
 
43
  REPO_URL="https://RottenShadow:${HF_TOKEN}@huggingface.co/spaces/${SPACE}"
44
  git clone --depth 1 "$REPO_URL" /tmp/hf-space
45
  cd /tmp/hf-space
 
 
46
  find . -maxdepth 1 -not -name .git -not -name . -not -name .. -exec rm -rf {} +
47
+ rsync -av --exclude=__pycache__ --exclude='*.pyc' --exclude=digrams --exclude=docs --exclude=docker "$GITHUB_WORKSPACE/ai_apps/Drug Reporposing/" .
48
+ cp "$GITHUB_WORKSPACE/ai_apps/Drug Reporposing/README_HF.md" README.md 2>/dev/null || true
49
  if [ -f Dockerfile.hf ]; then mv Dockerfile.hf Dockerfile; fi
50
  git config user.name "AILIXIR Bot"
51
  git config user.email "bot@ailixir.app"
 
66
  REPO_URL="https://RottenShadow:${HF_TOKEN}@huggingface.co/spaces/${SPACE}"
67
  git clone --depth 1 "$REPO_URL" /tmp/hf-space
68
  cd /tmp/hf-space
 
 
69
  find . -maxdepth 1 -not -name .git -not -name . -not -name .. -exec rm -rf {} +
70
+ rsync -av --exclude=datasets.rar "$GITHUB_WORKSPACE/ai_apps/ADMIT/admet_inference/" .
71
+ cp README_HF.md README.md 2>/dev/null || true
72
  git config user.name "AILIXIR Bot"
73
  git config user.email "bot@ailixir.app"
74
  git config lfs.allowincompletepush true
 
89
  REPO_URL="https://RottenShadow:${HF_TOKEN}@huggingface.co/spaces/${SPACE}"
90
  git clone --depth 1 "$REPO_URL" /tmp/hf-space
91
  cd /tmp/hf-space
 
 
92
  find . -maxdepth 1 -not -name .git -not -name . -not -name .. -exec rm -rf {} +
93
+ rsync -av --exclude=digrams "$GITHUB_WORKSPACE/ai_apps/chemical-rag-system/chemical-rag-system/" .
94
+ cp README_HF.md README.md 2>/dev/null || true
95
  git config user.name "AILIXIR Bot"
96
  git config user.email "bot@ailixir.app"
97
  git add -A
 
111
  REPO_URL="https://RottenShadow:${HF_TOKEN}@huggingface.co/spaces/${SPACE}"
112
  git clone --depth 1 "$REPO_URL" /tmp/hf-space
113
  cd /tmp/hf-space
 
 
114
  find . -maxdepth 1 -not -name .git -not -name . -not -name .. -exec rm -rf {} +
115
+ rsync -av --exclude=bundle/models "$GITHUB_WORKSPACE/ai_apps/generation/" .
116
+ cp "$GITHUB_WORKSPACE/ai_apps/generation/README_HF.md" README.md 2>/dev/null || true
117
+ if [ -f Dockerfile.hf ]; then mv Dockerfile.hf Dockerfile; elif [ -f Dockerfile.api ]; then mv Dockerfile.api Dockerfile; fi
118
  git config user.name "AILIXIR Bot"
119
  git config user.email "bot@ailixir.app"
120
  git config lfs.allowincompletepush true
README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: AILIXIR - Backend API
3
+ emoji: 🧠
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: docker
7
+ app_port: 7860
8
+ ---
9
+
10
+ # AILIXIR Backend API
11
+
12
+ Laravel backend with SQLite database for the AILIXIR drug discovery platform.
13
+
14
+ - **Port:** 7860
15
+ - **SDK:** Docker
16
+ - **Database:** SQLite
17
+
18
+ ## Endpoints
19
+
20
+ - `GET /api/ai-services/health` β€” Health check
21
+ - `POST /api/admet/predict` β€” ADMET prediction
22
+ - `POST /api/chemical-search` β€” Chemical search
23
+ - `POST /api/user/register` β€” User registration
24
+ - `POST /api/user/login` β€” User login
README_HF.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: AILIXIR - Backend API
3
+ emoji: 🧠
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: docker
7
+ app_port: 7860
8
+ ---
9
+
10
+ # AILIXIR Backend API
11
+
12
+ Laravel backend with SQLite database for the AILIXIR drug discovery platform.
13
+
14
+ - **Port:** 7860
15
+ - **SDK:** Docker
16
+ - **Database:** SQLite
17
+
18
+ ## Endpoints
19
+
20
+ - `GET /api/ai-services/health` β€” Health check
21
+ - `POST /api/admet/predict` β€” ADMET prediction
22
+ - `POST /api/chemical-search` β€” Chemical search
23
+ - `POST /api/user/register` β€” User registration
24
+ - `POST /api/user/login` β€” User login