Spaces:
Runtime error
Runtime error
File size: 561 Bytes
1444e99 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#!/bin/bash
echo "Running setup.sh..."
# Ensure all required Python packages are installed
pip install --upgrade pip
pip install -r requirements.txt
# Manually download the spaCy model
echo "Downloading spaCy model..."
python -m spacy download en_core_web_sm
# Ensure Hugging Face model is downloaded
echo "Downloading Hugging Face model..."
python -c "from transformers import AutoModel, AutoTokenizer; AutoModel.from_pretrained('emilyalsentzer/Bio_ClinicalBERT'); AutoTokenizer.from_pretrained('emilyalsentzer/Bio_ClinicalBERT')"
echo "Setup completed!"
|