File size: 974 Bytes
a8b81f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import os

def check_project_setup():
    # Check directory structure
    directories = ['app', 'models', 'src', 'data']
    for dir in directories:
        if not os.path.exists(dir):
            print(f"Missing directory: {dir}")
            os.makedirs(dir)
            print(f"Created directory: {dir}")
    
    # Check required files
    required_files = [
        'app/streamlit_app.py',
        'src/config.py',
        'src/data_preprocessing.py',
        'src/model.py',
        'src/__init__.py',
        'train_model.py'
    ]
    
    for file in required_files:
        if not os.path.exists(file):
            print(f"Missing file: {file}")
        else:
            print(f"Found file: {file}")
    
    # Check if model exists
    if not os.path.exists('models/breast_cancer_model.pkl'):
        print("Model file not found. Please run train_model.py first")
    else:
        print("Model file found")

if __name__ == "__main__":
    check_project_setup()