Download composite-defect-detector/run.sh from randomnameplease/DefectDetection: direct link, hf CLI and curl.
- Browser
- Download file 829 Bytes
-
https://huggingface.co/randomnameplease/DefectDetection/resolve/bbb083f4e4130af04e257cdde2dee2208973e4f5/composite-defect-detector/run.sh
- Command line
-
hf download hf://randomnameplease/DefectDetection@bbb083f4e4130af04e257cdde2dee2208973e4f5/composite-defect-detector/run.sh
-
curl -L -o run.sh https://huggingface.co/randomnameplease/DefectDetection/resolve/bbb083f4e4130af04e257cdde2dee2208973e4f5/composite-defect-detector/run.sh
829 Bytes
| 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 | |