Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,6 +7,35 @@ import streamlit as st
|
|
| 7 |
# import pandas
|
| 8 |
import pandas as pd
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
st.markdown("""
|
| 11 |
<style>
|
| 12 |
.block-container {
|
|
@@ -48,13 +77,6 @@ div[data-baseweb="input"] {
|
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
-
# define functiom which can provide formatted input with appropriate label and input text
|
| 52 |
-
# this will help in p[roducing consistent representation
|
| 53 |
-
def formatted_number_input_variable_arg(title, hint, **kwargs):
|
| 54 |
-
st.markdown(f"**{title}**")
|
| 55 |
-
st.caption(hint)
|
| 56 |
-
return st.number_input("", **kwargs)
|
| 57 |
-
|
| 58 |
def formatted_number_input(title, hint, minval, maxval, defvalue, steps, valformat="%.6f"):
|
| 59 |
|
| 60 |
st.markdown('<div style="margin-bottom:4px;">', unsafe_allow_html=True)
|
|
@@ -78,34 +100,6 @@ def formatted_number_input(title, hint, minval, maxval, defvalue, steps, valform
|
|
| 78 |
|
| 79 |
return user_input
|
| 80 |
|
| 81 |
-
# ---------------------------------------------------------
|
| 82 |
-
# PAGE CONFIG
|
| 83 |
-
# ---------------------------------------------------------
|
| 84 |
-
st.set_page_config(
|
| 85 |
-
page_title="Predictive Maintenenace App",
|
| 86 |
-
layout="wide"
|
| 87 |
-
)
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
# ---------------------------------------------------------
|
| 91 |
-
# TITLE
|
| 92 |
-
# ---------------------------------------------------------
|
| 93 |
-
#st.title("🏖️ Predict Engine Maintenance")
|
| 94 |
-
#st.write("The Predict Maintenance app is a tool to predict if an Engine needs any maintenance based on provided operating sensor parameters.")
|
| 95 |
-
#st.write("Fill in the details below and click **Predict** to see if the Engine needs maintenance to prevent from failure.")
|
| 96 |
-
# -----------------------------
|
| 97 |
-
# Title & Description
|
| 98 |
-
# -----------------------------
|
| 99 |
-
st.markdown("""
|
| 100 |
-
<h2 style="margin-top: 0.5rem;">
|
| 101 |
-
🔧 Engine Predictive Maintenance System
|
| 102 |
-
</h2>
|
| 103 |
-
""", unsafe_allow_html=True)
|
| 104 |
-
st.markdown(
|
| 105 |
-
"Predict potential engine failures using real-time sensor inputs. "
|
| 106 |
-
"The model is optimized for **high fault recall** to minimize missed failures."
|
| 107 |
-
)
|
| 108 |
-
|
| 109 |
|
| 110 |
# ====================================
|
| 111 |
# Section : Capture Engine Parameters
|
|
|
|
| 7 |
# import pandas
|
| 8 |
import pandas as pd
|
| 9 |
|
| 10 |
+
# ---------------------------------------------------------
|
| 11 |
+
# PAGE CONFIG
|
| 12 |
+
# ---------------------------------------------------------
|
| 13 |
+
st.set_page_config(
|
| 14 |
+
page_title="Predictive Maintenenace App",
|
| 15 |
+
layout="wide"
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
# ---------------------------------------------------------
|
| 20 |
+
# TITLE
|
| 21 |
+
# ---------------------------------------------------------
|
| 22 |
+
#st.title("🏖️ Predict Engine Maintenance")
|
| 23 |
+
#st.write("The Predict Maintenance app is a tool to predict if an Engine needs any maintenance based on provided operating sensor parameters.")
|
| 24 |
+
#st.write("Fill in the details below and click **Predict** to see if the Engine needs maintenance to prevent from failure.")
|
| 25 |
+
# -----------------------------
|
| 26 |
+
# Title & Description
|
| 27 |
+
# -----------------------------
|
| 28 |
+
st.markdown("""
|
| 29 |
+
<h2 style="margin-top: 0.5rem;">
|
| 30 |
+
🔧 Engine Predictive Maintenance System
|
| 31 |
+
</h2>
|
| 32 |
+
""", unsafe_allow_html=True)
|
| 33 |
+
st.markdown(
|
| 34 |
+
"Predict potential engine failures using real-time sensor inputs. "
|
| 35 |
+
"The model is optimized for **high fault recall** to minimize missed failures."
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
st.markdown("""
|
| 40 |
<style>
|
| 41 |
.block-container {
|
|
|
|
| 77 |
|
| 78 |
|
| 79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
def formatted_number_input(title, hint, minval, maxval, defvalue, steps, valformat="%.6f"):
|
| 81 |
|
| 82 |
st.markdown('<div style="margin-bottom:4px;">', unsafe_allow_html=True)
|
|
|
|
| 100 |
|
| 101 |
return user_input
|
| 102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
# ====================================
|
| 105 |
# Section : Capture Engine Parameters
|