Spaces:
Build error
Build error
ilham push 9
Browse files
src/__pycache__/eda.cpython-312.pyc
CHANGED
|
Binary files a/src/__pycache__/eda.cpython-312.pyc and b/src/__pycache__/eda.cpython-312.pyc differ
|
|
|
src/__pycache__/prediction.cpython-312.pyc
CHANGED
|
Binary files a/src/__pycache__/prediction.cpython-312.pyc and b/src/__pycache__/prediction.cpython-312.pyc differ
|
|
|
src/prediction.py
CHANGED
|
@@ -30,18 +30,18 @@ def run():
|
|
| 30 |
machine_id = st.text_input('Machine ID', value='---machine id--')
|
| 31 |
|
| 32 |
st.markdown('Equipment Operation Parameters')
|
| 33 |
-
temperature = st.number_input('Temperature', min_value=0, max_value=
|
| 34 |
-
vibration = st.number_input('Vibration', min_value=-20, max_value=
|
| 35 |
-
humidity = st.number_input('Humidity', min_value=0, max_value=
|
| 36 |
-
pressure = st.number_input('Pressure', min_value=0, max_value=6, value=0
|
| 37 |
-
energy_consumption = st.number_input('Energy Consumption', min_value=0, max_value=6, value=0
|
| 38 |
|
| 39 |
st.markdown('Equipment Status and Condition')
|
| 40 |
machine_status = st.selectbox('Machine Status', (0, 1), index=0, help='0 = not running, 1 = running')
|
| 41 |
anomaly_flag = st.selectbox('Anomaly Flag', (0, 1), index=0, help='0 = normal temperature & vibration, 1 = extreme temperature & vibration')
|
| 42 |
-
predicted_remaining_life = st.number_input ('Remaining life Prediction', min_value=0, max_value=500, value=0
|
| 43 |
failure_type = st.selectbox('Failure Type', ('Normal', 'Vibration Issue', 'Overheating', 'Pressure Drop', 'Electrical Fault'), index=0)
|
| 44 |
-
downtime_risk = st.number_input('Downtime Risk Score', min_value=0.00, max_value=1.00, value=0.00,
|
| 45 |
|
| 46 |
submitted = st.form_submit_button('Predict')
|
| 47 |
|
|
|
|
| 30 |
machine_id = st.text_input('Machine ID', value='---machine id--')
|
| 31 |
|
| 32 |
st.markdown('Equipment Operation Parameters')
|
| 33 |
+
temperature = st.number_input('Temperature', min_value=0.00, max_value=200.00, value=0.00)
|
| 34 |
+
vibration = st.number_input('Vibration', min_value=-20.00, max_value=200.00, value=0.00)
|
| 35 |
+
humidity = st.number_input('Humidity', min_value=0.00, max_value=85.00, value=0.00)
|
| 36 |
+
pressure = st.number_input('Pressure', min_value=0.00, max_value=6.00, value=0.00)
|
| 37 |
+
energy_consumption = st.number_input('Energy Consumption', min_value=0.00, max_value=6.00, value=0.00)
|
| 38 |
|
| 39 |
st.markdown('Equipment Status and Condition')
|
| 40 |
machine_status = st.selectbox('Machine Status', (0, 1), index=0, help='0 = not running, 1 = running')
|
| 41 |
anomaly_flag = st.selectbox('Anomaly Flag', (0, 1), index=0, help='0 = normal temperature & vibration, 1 = extreme temperature & vibration')
|
| 42 |
+
predicted_remaining_life = st.number_input ('Remaining life Prediction', min_value=0, max_value=500, value=0)
|
| 43 |
failure_type = st.selectbox('Failure Type', ('Normal', 'Vibration Issue', 'Overheating', 'Pressure Drop', 'Electrical Fault'), index=0)
|
| 44 |
+
downtime_risk = st.number_input('Downtime Risk Score', min_value=0.00, max_value=1.00, value=0.00, help='range from 0-1')
|
| 45 |
|
| 46 |
submitted = st.form_submit_button('Predict')
|
| 47 |
|
src/streamlit_app.py
CHANGED
|
@@ -2,6 +2,12 @@ import streamlit as st
|
|
| 2 |
import eda
|
| 3 |
import prediction
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
page = st.sidebar.selectbox('Pages', ('EDA', 'Prediction'))
|
| 6 |
|
| 7 |
if page == 'EDA':
|
|
|
|
| 2 |
import eda
|
| 3 |
import prediction
|
| 4 |
|
| 5 |
+
st.set_page_config(
|
| 6 |
+
page_title='Smart Manufacturing for Predictive Maintenance',
|
| 7 |
+
layout='wide',
|
| 8 |
+
initial_sidebar_state='expanded'
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
page = st.sidebar.selectbox('Pages', ('EDA', 'Prediction'))
|
| 12 |
|
| 13 |
if page == 'EDA':
|