Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import base64
|
|
10 |
MODEL = None
|
11 |
PROCESSOR = None
|
12 |
|
13 |
-
# Embedded knowledge base
|
14 |
# Knowledge base
|
15 |
KNOWLEDGE_BASE = {
|
16 |
"spalling": [
|
@@ -188,8 +188,8 @@ def display_header():
|
|
188 |
st.markdown(
|
189 |
"""
|
190 |
<div style='text-align: center; padding: 1rem;'>
|
191 |
-
<h1>ποΈ
|
192 |
-
<p style='font-size: 1.2rem;'>Advanced AI-powered
|
193 |
</div>
|
194 |
""",
|
195 |
unsafe_allow_html=True
|
@@ -198,7 +198,7 @@ def display_header():
|
|
198 |
def main():
|
199 |
init_session_state()
|
200 |
st.set_page_config(
|
201 |
-
page_title="
|
202 |
page_icon="ποΈ",
|
203 |
layout="wide",
|
204 |
initial_sidebar_state="expanded"
|
@@ -298,7 +298,7 @@ def main():
|
|
298 |
st.markdown(cases[0]['prevention'])
|
299 |
|
300 |
if not detected:
|
301 |
-
st.info("No significant
|
302 |
|
303 |
# Add to history
|
304 |
st.session_state.history.append(f"Analyzed image: {uploaded_file.name}")
|
@@ -312,7 +312,7 @@ def main():
|
|
312 |
st.markdown(
|
313 |
"""
|
314 |
<div style='text-align: center'>
|
315 |
-
<p>ποΈ
|
316 |
<p style='font-size: 0.8rem;'>For professional use only. Always consult with a structural engineer.</p>
|
317 |
</div>
|
318 |
""",
|
|
|
10 |
MODEL = None
|
11 |
PROCESSOR = None
|
12 |
|
13 |
+
# Embedded knowledge base
|
14 |
# Knowledge base
|
15 |
KNOWLEDGE_BASE = {
|
16 |
"spalling": [
|
|
|
188 |
st.markdown(
|
189 |
"""
|
190 |
<div style='text-align: center; padding: 1rem;'>
|
191 |
+
<h1>ποΈ Smart Construction Defect Analyzer</h1>
|
192 |
+
<p style='font-size: 1.2rem;'>Advanced AI-powered Construction Defect tool</p>
|
193 |
</div>
|
194 |
""",
|
195 |
unsafe_allow_html=True
|
|
|
198 |
def main():
|
199 |
init_session_state()
|
200 |
st.set_page_config(
|
201 |
+
page_title="Smart Construction Defect Analyzer",
|
202 |
page_icon="ποΈ",
|
203 |
layout="wide",
|
204 |
initial_sidebar_state="expanded"
|
|
|
298 |
st.markdown(cases[0]['prevention'])
|
299 |
|
300 |
if not detected:
|
301 |
+
st.info("No significant Construction Defect detected. Regular maintenance recommended.")
|
302 |
|
303 |
# Add to history
|
304 |
st.session_state.history.append(f"Analyzed image: {uploaded_file.name}")
|
|
|
312 |
st.markdown(
|
313 |
"""
|
314 |
<div style='text-align: center'>
|
315 |
+
<p>ποΈ Smart Construction Defect Analyzer | Built with Streamlit & Transformers</p>
|
316 |
<p style='font-size: 0.8rem;'>For professional use only. Always consult with a structural engineer.</p>
|
317 |
</div>
|
318 |
""",
|