-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·47 lines (38 loc) · 1.13 KB
/
setup.sh
File metadata and controls
executable file
·47 lines (38 loc) · 1.13 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# Islamic AI Fine-Tuning Project Setup Script
# echo "🕌 Setting up Islamic AI Fine-Tuning Project..."
# # Create project directory
# mkdir -p ilm-ai-finetuning
# cd ilm-ai-finetuning
# # Create project structure
# mkdir -p {data,src,tests,config,logs,models}
# Create virtual environment
echo "📦 Creating virtual environment..."
python3 -m venv ilm-ai-env
# Activate virtual environment (Linux/Mac)
source ilm-ai-env/bin/activate
# For Windows users, use: ilm-ai-env\Scripts\activate
echo "✅ Virtual environment created and activated"
echo "🔧 Project structure created successfully"
# Create requirements.txt file
cat > requirements.txt << 'EOF'
openai>=1.0.0
python-dotenv>=1.0.0
pandas>=2.0.0
jsonlines>=3.1.0
requests>=2.31.0
tqdm>=4.65.0
colorama>=0.4.6
tabulate>=0.9.0
EOF
# Set permissions
chmod +x setup.sh
# Install requirements
echo "📥 Installing Python packages..."
pip install -r requirements.txt
echo "✅ All packages installed successfully"
echo ""
echo "🎉 Setup complete! Next steps:"
echo "1. Add your OpenAI API key to config/.env"
echo "2. Run: python src/main.py"
echo "3. Follow the interactive prompts"