Spaces:
Runtime error
Runtime error
Create setup.sh
Browse files
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!"
|