File size: 816 Bytes
900df0b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
# 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"