Shakir60 commited on
Commit
3d49530
Β·
verified Β·
1 Parent(s): 80c792f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -10,7 +10,7 @@ import base64
10
  MODEL = None
11
  PROCESSOR = None
12
 
13
- # Embedded knowledge base (using previous 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>πŸ—οΈ Structural Damage Analyzer Pro</h1>
192
- <p style='font-size: 1.2rem;'>Advanced AI-powered structural damage assessment tool</p>
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="Structural Damage Analyzer Pro",
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 structural damage detected. Regular maintenance recommended.")
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>πŸ—οΈ Structural Damage Analyzer Pro | 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
  """,
 
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
  """,