Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,22 +81,61 @@ def formatted_number_input(title, hint, minval, maxval, defvalue, steps, valform
|
|
| 81 |
|
| 82 |
st.markdown("""
|
| 83 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
.card {
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
border-radius: 14px;
|
| 88 |
-
padding: 18px 20px 20px 20px;
|
| 89 |
margin-bottom: 20px;
|
|
|
|
| 90 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
.card-title {
|
| 92 |
-
font-size: 1.
|
| 93 |
font-weight: 600;
|
| 94 |
-
margin-bottom:
|
|
|
|
| 95 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
</style>
|
| 97 |
""", unsafe_allow_html=True)
|
| 98 |
|
| 99 |
-
|
| 100 |
# ====================================
|
| 101 |
# Section : Capture Engine Parameters
|
| 102 |
# ====================================
|
|
@@ -109,9 +148,10 @@ col_inputs, col_output = st.columns([3, 1.5])
|
|
| 109 |
# update contnent (input) in left input column
|
| 110 |
with col_inputs:
|
| 111 |
|
| 112 |
-
st.markdown('<div class="card">', unsafe_allow_html=True)
|
| 113 |
|
| 114 |
st.markdown('<div class="card-title">🔧 Engine Parameters</div>', unsafe_allow_html=True)
|
|
|
|
| 115 |
|
| 116 |
col_left, col_right = st.columns(2)
|
| 117 |
|
|
@@ -194,7 +234,7 @@ with col_inputs:
|
|
| 194 |
|
| 195 |
with col_output:
|
| 196 |
|
| 197 |
-
st.markdown('<div class="card">', unsafe_allow_html=True)
|
| 198 |
|
| 199 |
st.markdown('<div class="card-title">🧠 Prediction Result</div>', unsafe_allow_html=True)
|
| 200 |
|
|
|
|
| 81 |
|
| 82 |
st.markdown("""
|
| 83 |
<style>
|
| 84 |
+
|
| 85 |
+
/* Reduce top padding */
|
| 86 |
+
.block-container {
|
| 87 |
+
padding-top: 1rem;
|
| 88 |
+
padding-bottom: 1rem;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
/* Shared card styling */
|
| 92 |
.card {
|
| 93 |
+
border-radius: 16px;
|
| 94 |
+
padding: 22px;
|
|
|
|
|
|
|
| 95 |
margin-bottom: 20px;
|
| 96 |
+
transition: 0.3s ease-in-out;
|
| 97 |
}
|
| 98 |
+
|
| 99 |
+
/* INPUT CARD */
|
| 100 |
+
.input-card {
|
| 101 |
+
background: linear-gradient(145deg, #0f172a, #111827);
|
| 102 |
+
border: 1px solid #334155;
|
| 103 |
+
box-shadow: 0 0 0 1px rgba(59,130,246,0.15);
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
/* OUTPUT CARD */
|
| 107 |
+
.output-card {
|
| 108 |
+
background: linear-gradient(145deg, #111827, #0b1220);
|
| 109 |
+
border: 1px solid #16a34a;
|
| 110 |
+
box-shadow: 0 0 12px rgba(34,197,94,0.25);
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
/* Card title */
|
| 114 |
.card-title {
|
| 115 |
+
font-size: 1.2rem;
|
| 116 |
font-weight: 600;
|
| 117 |
+
margin-bottom: 16px;
|
| 118 |
+
letter-spacing: 0.5px;
|
| 119 |
}
|
| 120 |
+
|
| 121 |
+
/* Button styling */
|
| 122 |
+
div.stButton > button {
|
| 123 |
+
width: 100%;
|
| 124 |
+
border-radius: 10px;
|
| 125 |
+
height: 3em;
|
| 126 |
+
font-weight: 600;
|
| 127 |
+
background: linear-gradient(90deg, #2563eb, #1d4ed8);
|
| 128 |
+
color: white;
|
| 129 |
+
border: none;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
div.stButton > button:hover {
|
| 133 |
+
background: linear-gradient(90deg, #1d4ed8, #1e40af);
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
</style>
|
| 137 |
""", unsafe_allow_html=True)
|
| 138 |
|
|
|
|
| 139 |
# ====================================
|
| 140 |
# Section : Capture Engine Parameters
|
| 141 |
# ====================================
|
|
|
|
| 148 |
# update contnent (input) in left input column
|
| 149 |
with col_inputs:
|
| 150 |
|
| 151 |
+
st.markdown('<div class="card input-card">', unsafe_allow_html=True)
|
| 152 |
|
| 153 |
st.markdown('<div class="card-title">🔧 Engine Parameters</div>', unsafe_allow_html=True)
|
| 154 |
+
|
| 155 |
|
| 156 |
col_left, col_right = st.columns(2)
|
| 157 |
|
|
|
|
| 234 |
|
| 235 |
with col_output:
|
| 236 |
|
| 237 |
+
st.markdown('<div class="card output-card">', unsafe_allow_html=True)
|
| 238 |
|
| 239 |
st.markdown('<div class="card-title">🧠 Prediction Result</div>', unsafe_allow_html=True)
|
| 240 |
|