Spaces:
Running
Running
| # OmniFile AI Processor β Quick Setup | |
| set -e | |
| echo "π§ OmniFile AI Processor β Setup" | |
| echo "=================================" | |
| # Detect environment | |
| if [ -d "/content" ]; then | |
| ENV="colab" | |
| elif [ -f "/etc/manjaro-release" ]; then | |
| ENV="manjaro" | |
| else | |
| ENV="linux" | |
| fi | |
| echo "π Environment: $ENV" | |
| # Install core | |
| pip install -q -r requirements-core.txt | |
| # Ask about heavy packages | |
| read -p "Install OCR engines? (EasyOCR/Tesseract) [y/N]: " ocr | |
| if [[ "$ocr" =~ ^[Yy]$ ]]; then | |
| pip install -q -r requirements-ocr.txt | |
| fi | |
| read -p "Install NLP models? (transformers/Helsinki) [y/N]: " nlp | |
| if [[ "$nlp" =~ ^[Yy]$ ]]; then | |
| pip install -q -r requirements-nlp.txt | |
| fi | |
| echo "" | |
| echo "β Setup complete!" | |
| echo " Start: python -m src.gradio_ui" | |
| echo " Test: pytest tests/ -x -q" | |