Spaces:
Running
Running
Download server/install_deps.sh from openenv/chat_env: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/spaces/openenv/chat_env/resolve/main/server/install_deps.sh
- Command line
-
hf download hf://spaces/openenv/chat_env/server/install_deps.sh
-
curl -L -o install_deps.sh https://huggingface.co/spaces/openenv/chat_env/resolve/main/server/install_deps.sh
386 Bytes
| # Additional setup for chat_env | |
| set -e | |
| # Install Python dependencies | |
| pip install --no-cache-dir -r /tmp/requirements.txt | |
| # Set up cache directory for Hugging Face models | |
| mkdir -p /.cache && chmod 777 /.cache | |
| # Pre-download the GPT-2 model to avoid permission issues during runtime | |
| python -c "from transformers import GPT2Tokenizer; GPT2Tokenizer.from_pretrained('gpt2')" | |