|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
echo "Installing dependencies for Hugging Face Spaces..." |
|
|
|
|
|
|
|
|
python -m venv venv |
|
|
source venv/bin/activate |
|
|
|
|
|
|
|
|
pip install --upgrade pip |
|
|
|
|
|
|
|
|
pip install -r requirements.txt --no-cache-dir |
|
|
|
|
|
|
|
|
python -c "import gradio; print(f'Gradio version: {gradio.__version__}')" |
|
|
python -c "import transformers; print(f'Transformers version: {transformers.__version__}')" |
|
|
python -c "import torch; print(f'PyTorch version: {torch.__version__}')" |
|
|
python -c "import faiss; print('FAISS installed successfully')" |
|
|
|
|
|
echo "Installation completed successfully!" |
|
|
|
|
|
|