peachfawn commited on
Commit
1444e99
Β·
verified Β·
1 Parent(s): e3c6642

Create setup.sh

Browse files
Files changed (1) hide show
  1. setup.sh +17 -0
setup.sh ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ echo "Running setup.sh..."
4
+
5
+ # Ensure all required Python packages are installed
6
+ pip install --upgrade pip
7
+ pip install -r requirements.txt
8
+
9
+ # Manually download the spaCy model
10
+ echo "Downloading spaCy model..."
11
+ python -m spacy download en_core_web_sm
12
+
13
+ # Ensure Hugging Face model is downloaded
14
+ echo "Downloading Hugging Face model..."
15
+ python -c "from transformers import AutoModel, AutoTokenizer; AutoModel.from_pretrained('emilyalsentzer/Bio_ClinicalBERT'); AutoTokenizer.from_pretrained('emilyalsentzer/Bio_ClinicalBERT')"
16
+
17
+ echo "Setup completed!"