File size: 829 Bytes
bbb083f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash

echo "๐Ÿ”ฌ CompositeDefect AI - NDT Analysis System"
echo "============================================"
echo ""

# Check if Python is installed
if ! command -v python3 &> /dev/null; then
    echo "โŒ Python 3 is not installed. Please install Python 3.8 or higher."
    exit 1
fi

# Check if pip is installed
if ! command -v pip &> /dev/null; then
    echo "โŒ pip is not installed. Please install pip."
    exit 1
fi

# Check if requirements are installed
echo "๐Ÿ“ฆ Checking dependencies..."
pip install -q -r requirements.txt

if [ $? -ne 0 ]; then
    echo "โŒ Failed to install dependencies. Please check your internet connection."
    exit 1
fi

echo "โœ… Dependencies installed successfully!"
echo ""

# Run the Streamlit application
echo "๐Ÿš€ Starting CompositeDefect AI..."
echo ""
streamlit run app.py