diff --git a/backend/requirements.txt b/backend/requirements.txt index a9c877b1d29c7663dffb956a47c2ac5aacad5422..82764a110a6f9423bf1f512facfe29efb8b135a8 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -1,8 +1,80 @@ -fastapi -uvicorn -pydantic -numpy -pandas -autokeras - - +absl-py==2.1.0 +annotated-types==0.7.0 +anyio==4.8.0 +astunparse==1.6.3 +autokeras==1.0.20 +axios==0.4.0 +cachetools==5.5.1 +certifi==2024.12.14 +charset-normalizer==3.4.1 +click==8.1.8 +colorama==0.4.6 +contourpy==1.3.0 +cycler==0.12.1 +exceptiongroup==1.2.2 +fastapi==0.115.7 +flatbuffers==25.1.24 +fonttools==4.55.6 +gast==0.4.0 +google-auth==2.38.0 +google-auth-oauthlib==0.4.6 +google-pasta==0.2.0 +grpcio==1.70.0 +h11==0.14.0 +h5py==3.12.1 +idna==3.10 +importlib_metadata==8.6.1 +importlib_resources==6.5.2 +joblib==1.4.2 +keras==2.10.0 +Keras-Preprocessing==1.1.2 +keras-tuner==1.4.7 +kiwisolver==1.4.7 +kt-legacy==1.0.5 +libclang==18.1.1 +lxml==5.3.0 +Markdown==3.7 +markdown-it-py==3.0.0 +MarkupSafe==3.0.2 +matplotlib==3.9.4 +mdurl==0.1.2 +numpy==1.23.5 +oauthlib==3.2.2 +opt_einsum==3.4.0 +packaging==24.2 +pandas==2.2.3 +pillow==11.1.0 +protobuf==3.19.6 +pyasn1==0.6.1 +pyasn1_modules==0.4.1 +pydantic==2.10.6 +pydantic_core==2.27.2 +Pygments==2.19.1 +pyparsing==3.2.1 +python-dateutil==2.9.0.post0 +python-multipart==0.0.20 +pytz==2024.2 +requests==2.32.3 +requests-oauthlib==2.0.0 +rich==13.9.4 +rsa==4.9 +scikit-learn==1.5.1 +scipy==1.13.1 +six==1.17.0 +sniffio==1.3.1 +starlette==0.45.3 +tensorboard==2.10.1 +tensorboard-data-server==0.6.1 +tensorboard-plugin-wit==1.8.1 +tensorflow==2.10.1 +tensorflow-estimator==2.10.0 +tensorflow-io-gcs-filesystem==0.31.0 +termcolor==2.5.0 +threadpoolctl==3.5.0 +typing_extensions==4.12.2 +tzdata==2025.1 +urllib3==2.3.0 +uvicorn==0.34.0 +Werkzeug==3.1.3 +wrapt==1.17.2 +zipp==3.21.0 diff --git a/backend/test.py b/backend/test.py index 95a49b7276e1ea91becb54439d4b45f2f326152d..f62c2b3ad4ca0c484d95b154ef58c83febb18bd9 100644 --- a/backend/test.py +++ b/backend/test.py @@ -1,9 +1,5 @@ -import tensorflow as tf +MODEL_DIRECTORY = "/backend/app/models/" +SCALER_DIRECTORY = "/backend/app/scalers/" -model_path = "C:\\Users\\User\\ML Predictor\\backend\\app\\trained_model\\random_model" - -try: - model = tf.keras.models.load_model(model_path) - print("Model loaded successfully!") -except Exception as e: - print("Error loading model:", e) +os.makedirs(MODEL_DIRECTORY, exist_ok=True) +os.makedirs(SCALER_DIRECTORY, exist_ok=True) \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index e0a9d48d8ed9c2c3f844830bb6edb4d925766309..9cd0a6c884320ba2f2887de7dc82ee9856f4da67 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ <meta charset="UTF-8" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <title>Vite + React</title> + <title>Machine Learning Predictor</title> </head> <body> <div id="root"></div> diff --git a/frontend/src/App.css b/frontend/src/App.css index 32e554a54de94df1853ee113d2b62181c5467d89..ab58e686ecae8171854a97bdff8f0acba49e3e10 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -1,3 +1,4 @@ + .container { max-width: 600px; margin: 20px auto; diff --git a/frontend/src/components/dashboard.jsx b/frontend/src/components/dashboard.jsx index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..6bf285018b2421f73700761deaaf5100a760884a 100644 --- a/frontend/src/components/dashboard.jsx +++ b/frontend/src/components/dashboard.jsx @@ -0,0 +1 @@ +// currently not needed \ No newline at end of file