Update app.py
Browse files
app.py
CHANGED
|
@@ -88,68 +88,98 @@ st.markdown("""
|
|
| 88 |
word-break: break-all;
|
| 89 |
}
|
| 90 |
|
| 91 |
-
/* Verhash Brand Colors */
|
| 92 |
.stApp {
|
| 93 |
-
background-color: #
|
|
|
|
| 94 |
}
|
| 95 |
|
| 96 |
-
/* Headers
|
| 97 |
h1, h2, h3 {
|
| 98 |
-
color: #
|
|
|
|
| 99 |
}
|
| 100 |
|
| 101 |
-
/* Links
|
| 102 |
a {
|
| 103 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
}
|
| 105 |
|
| 106 |
/* Button styling */
|
| 107 |
.stButton > button {
|
| 108 |
-
background-color: #
|
| 109 |
-
color: #
|
| 110 |
border: none;
|
| 111 |
-
font-weight:
|
|
|
|
|
|
|
| 112 |
}
|
| 113 |
|
| 114 |
.stButton > button:hover {
|
| 115 |
-
background-color: #
|
| 116 |
-
color: #
|
|
|
|
| 117 |
}
|
| 118 |
|
| 119 |
/* Sidebar branding */
|
| 120 |
[data-testid="stSidebar"] {
|
| 121 |
-
background-color: #
|
| 122 |
-
border-right:
|
| 123 |
}
|
| 124 |
|
| 125 |
/* Metric styling */
|
| 126 |
[data-testid="stMetricValue"] {
|
| 127 |
-
color: #
|
| 128 |
}
|
| 129 |
|
| 130 |
.main-header {
|
| 131 |
text-align: center;
|
| 132 |
-
padding: 20px 0;
|
| 133 |
-
border-bottom: 2px solid #00ff00;
|
| 134 |
margin-bottom: 20px;
|
| 135 |
}
|
| 136 |
.company-name {
|
| 137 |
-
color: #
|
| 138 |
-
font-size:
|
| 139 |
-
|
|
|
|
|
|
|
| 140 |
}
|
| 141 |
.nav-links {
|
| 142 |
text-align: center;
|
| 143 |
-
padding:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
}
|
| 145 |
.nav-links a {
|
| 146 |
-
color: #
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
}
|
| 151 |
-
.
|
| 152 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
}
|
| 154 |
</style>
|
| 155 |
""", unsafe_allow_html=True)
|
|
@@ -179,14 +209,14 @@ if 'audit_log' not in st.session_state:
|
|
| 179 |
|
| 180 |
st.markdown("""
|
| 181 |
<div class='main-header'>
|
| 182 |
-
<h1 style='color: #
|
| 183 |
-
<p class='company-name'>Verhash LLC |
|
| 184 |
</div>
|
| 185 |
<div class='nav-links'>
|
| 186 |
-
<a href='https://verhash.com' target='_blank'>🌐
|
| 187 |
-
<a href='mailto:ryan@verhash.net'>📧 Contact</a>
|
| 188 |
-
<a href='https://github.com/
|
| 189 |
-
<a href='https://verhash.com/docs' target='_blank'>📚
|
| 190 |
</div>
|
| 191 |
""", unsafe_allow_html=True)
|
| 192 |
|
|
@@ -230,28 +260,6 @@ lambda_max = st.sidebar.slider(
|
|
| 230 |
)
|
| 231 |
|
| 232 |
|
| 233 |
-
st.sidebar.markdown("---")
|
| 234 |
-
|
| 235 |
-
st.sidebar.markdown("### About")
|
| 236 |
-
st.sidebar.markdown("""
|
| 237 |
-
**Verhash LLC**
|
| 238 |
-
|
| 239 |
-
Deterministic AI governance through physics-based substrate computation.
|
| 240 |
-
|
| 241 |
-
**Links:**
|
| 242 |
-
- [verhash.com](https://verhash.com)
|
| 243 |
-
- [GitHub](https://github.com/Rymley/Deterministic-Governance-Mechanism)
|
| 244 |
-
- [Documentation](https://verhash.com/docs)
|
| 245 |
-
|
| 246 |
-
**Contact:**
|
| 247 |
-
ryan@verhash.net
|
| 248 |
-
|
| 249 |
-
**Patent Pending**
|
| 250 |
-
*Priority: January 25, 2026*
|
| 251 |
-
""")
|
| 252 |
-
|
| 253 |
-
st.sidebar.caption("© 2026 Verhash LLC")
|
| 254 |
-
|
| 255 |
# Run button
|
| 256 |
if st.sidebar.button("Run Deterministic Exclusion Demo", type="primary"):
|
| 257 |
with st.spinner("Running inference..."):
|
|
@@ -280,17 +288,40 @@ if st.sidebar.button("Run Deterministic Exclusion Demo", type="primary"):
|
|
| 280 |
|
| 281 |
st.success("Inference complete.")
|
| 282 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 283 |
|
| 284 |
# ============================================================================
|
| 285 |
# Main Content Area
|
| 286 |
# ============================================================================
|
| 287 |
|
| 288 |
|
| 289 |
-
# Info Banner Above Tabs
|
| 290 |
-
st.info("""
|
| 291 |
-
💡 **Production Deployment**: This is a reference implementation. For enterprise features, licensing, or partnerships → **[verhash.com](https://verhash.com)** | **ryan@verhash.net**
|
| 292 |
-
""")
|
| 293 |
-
|
| 294 |
# Create tabs
|
| 295 |
tab1, tab2, tab3, tab4 = st.tabs(["Mechanism Demo", "LLM Guardrail", "Live LLM Testing", "Explain & Tune"])
|
| 296 |
|
|
|
|
| 88 |
word-break: break-all;
|
| 89 |
}
|
| 90 |
|
| 91 |
+
/* Verhash Brand Colors - Professional Slate & Blue */
|
| 92 |
.stApp {
|
| 93 |
+
background-color: #020617; /* Slate 950 */
|
| 94 |
+
color: #f1f5f9; /* Slate 100 */
|
| 95 |
}
|
| 96 |
|
| 97 |
+
/* Headers */
|
| 98 |
h1, h2, h3 {
|
| 99 |
+
color: #38bdf8 !important; /* Sky 400 */
|
| 100 |
+
font-weight: 700 !important;
|
| 101 |
}
|
| 102 |
|
| 103 |
+
/* Links */
|
| 104 |
a {
|
| 105 |
+
color: #38bdf8 !important;
|
| 106 |
+
text-decoration: none !important;
|
| 107 |
+
}
|
| 108 |
+
a:hover {
|
| 109 |
+
color: #7dd3fc !important; /* Sky 300 */
|
| 110 |
+
text-decoration: underline !important;
|
| 111 |
}
|
| 112 |
|
| 113 |
/* Button styling */
|
| 114 |
.stButton > button {
|
| 115 |
+
background-color: #38bdf8;
|
| 116 |
+
color: #020617;
|
| 117 |
border: none;
|
| 118 |
+
font-weight: 600;
|
| 119 |
+
border-radius: 6px;
|
| 120 |
+
transition: all 0.2s ease;
|
| 121 |
}
|
| 122 |
|
| 123 |
.stButton > button:hover {
|
| 124 |
+
background-color: #7dd3fc;
|
| 125 |
+
color: #020617;
|
| 126 |
+
box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
|
| 127 |
}
|
| 128 |
|
| 129 |
/* Sidebar branding */
|
| 130 |
[data-testid="stSidebar"] {
|
| 131 |
+
background-color: #0f172a; /* Slate 900 */
|
| 132 |
+
border-right: 1px solid #1e293b;
|
| 133 |
}
|
| 134 |
|
| 135 |
/* Metric styling */
|
| 136 |
[data-testid="stMetricValue"] {
|
| 137 |
+
color: #38bdf8;
|
| 138 |
}
|
| 139 |
|
| 140 |
.main-header {
|
| 141 |
text-align: center;
|
| 142 |
+
padding: 40px 0 20px 0;
|
|
|
|
| 143 |
margin-bottom: 20px;
|
| 144 |
}
|
| 145 |
.company-name {
|
| 146 |
+
color: #94a3b8; /* Slate 400 */
|
| 147 |
+
font-size: 16px;
|
| 148 |
+
letter-spacing: 1px;
|
| 149 |
+
text-transform: uppercase;
|
| 150 |
+
margin-top: 8px;
|
| 151 |
}
|
| 152 |
.nav-links {
|
| 153 |
text-align: center;
|
| 154 |
+
padding: 15px 0;
|
| 155 |
+
background: rgba(15, 23, 42, 0.5);
|
| 156 |
+
border-radius: 8px;
|
| 157 |
+
border: 1px solid #1e293b;
|
| 158 |
+
margin-bottom: 30px;
|
| 159 |
}
|
| 160 |
.nav-links a {
|
| 161 |
+
color: #38bdf8;
|
| 162 |
+
padding: 0 20px;
|
| 163 |
+
font-size: 14px;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
/* Slider Styling */
|
| 167 |
+
.stSlider [data-baseweb="slider"] {
|
| 168 |
+
background-color: transparent;
|
| 169 |
+
}
|
| 170 |
+
.stSlider [data-baseweb="slider"] > div > div {
|
| 171 |
+
background: #38bdf8 !important;
|
| 172 |
}
|
| 173 |
+
.stSlider [data-baseweb="slider"] [role="slider"] {
|
| 174 |
+
background-color: #38bdf8;
|
| 175 |
+
border: 2px solid #020617;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
/* Info Box Styling */
|
| 179 |
+
.stAlert {
|
| 180 |
+
background-color: rgba(56, 189, 248, 0.05) !important;
|
| 181 |
+
border: 1px solid rgba(56, 189, 248, 0.2) !important;
|
| 182 |
+
color: #f1f5f9 !important;
|
| 183 |
}
|
| 184 |
</style>
|
| 185 |
""", unsafe_allow_html=True)
|
|
|
|
| 209 |
|
| 210 |
st.markdown("""
|
| 211 |
<div class='main-header'>
|
| 212 |
+
<h1 style='color: #38bdf8; margin: 0; font-size: 3rem;'>Deterministic Governance Mechanism</h1>
|
| 213 |
+
<p class='company-name'>Verhash LLC | Precision Substrate Computing</p>
|
| 214 |
</div>
|
| 215 |
<div class='nav-links'>
|
| 216 |
+
<a href='https://verhash.com' target='_blank'>🌐 verhash.com</a>
|
| 217 |
+
<a href='mailto:ryan@verhash.net'>📧 Contact</a>
|
| 218 |
+
<a href='https://github.com/yourusername/verhash' target='_blank'>💻 GitHub</a>
|
| 219 |
+
<a href='https://verhash.com/docs' target='_blank'>📚 Documentation</a>
|
| 220 |
</div>
|
| 221 |
""", unsafe_allow_html=True)
|
| 222 |
|
|
|
|
| 260 |
)
|
| 261 |
|
| 262 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 263 |
# Run button
|
| 264 |
if st.sidebar.button("Run Deterministic Exclusion Demo", type="primary"):
|
| 265 |
with st.spinner("Running inference..."):
|
|
|
|
| 288 |
|
| 289 |
st.success("Inference complete.")
|
| 290 |
|
| 291 |
+
st.sidebar.info("""
|
| 292 |
+
💡 **Production Deployment**
|
| 293 |
+
This is a reference implementation. For enterprise features, licensing, or partnerships:
|
| 294 |
+
**[verhash.com](https://verhash.com)** | **ryan@verhash.net**
|
| 295 |
+
""")
|
| 296 |
+
|
| 297 |
+
st.sidebar.markdown("---")
|
| 298 |
+
|
| 299 |
+
st.sidebar.markdown("### About")
|
| 300 |
+
st.sidebar.markdown("""
|
| 301 |
+
**Verhash LLC**
|
| 302 |
+
|
| 303 |
+
Deterministic AI governance through physics-based substrate computation.
|
| 304 |
+
|
| 305 |
+
**Links:**
|
| 306 |
+
- [verhash.com](https://verhash.com)
|
| 307 |
+
- [GitHub](https://github.com/Rymley/Deterministic-Governance-Mechanism)
|
| 308 |
+
- [Documentation](https://verhash.com/docs)
|
| 309 |
+
|
| 310 |
+
**Contact:**
|
| 311 |
+
ryan@verhash.net
|
| 312 |
+
|
| 313 |
+
**Patent Pending**
|
| 314 |
+
*Priority: January 25, 2026*
|
| 315 |
+
""")
|
| 316 |
+
|
| 317 |
+
st.sidebar.caption("© 2026 Verhash LLC")
|
| 318 |
+
|
| 319 |
|
| 320 |
# ============================================================================
|
| 321 |
# Main Content Area
|
| 322 |
# ============================================================================
|
| 323 |
|
| 324 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 325 |
# Create tabs
|
| 326 |
tab1, tab2, tab3, tab4 = st.tabs(["Mechanism Demo", "LLM Guardrail", "Live LLM Testing", "Explain & Tune"])
|
| 327 |
|