Pro-Coder commited on
Commit
950b708
Β·
verified Β·
1 Parent(s): 1506736

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -18
app.py CHANGED
@@ -327,11 +327,7 @@ Modern warehouse automation platforms β€” automated storage & retrieval
327
  systems (AS/RS), conveyor & sortation lines, AGVs/AMRs, and the WMS/WCS
328
  software that orchestrates them β€” generate huge volumes of operational
329
  data: equipment telemetry, transactions, safety logs, and ad-hoc questions
330
- from floor staff. This project is a compact, end-to-end example of how an
331
- AI layer can sit on top of that kind of system: routing requests correctly,
332
- answering from real operational context instead of guessing, catching
333
- equipment problems early, and doing all of it with **honest, reproducible
334
- evaluation** rather than a demo that just "looks like it works."
335
 
336
  ## What this demonstrates
337
 
@@ -579,19 +575,20 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue"), css=CUSTOM_CSS, title="
579
  gr.Dataframe(orders_df, wrap=True)
580
 
581
  with gr.Tab("⚠️ Predictive Maintenance"):
582
- gr.HTML(data_badge(
583
- "πŸ§ͺ <b>Source:</b> randomly generated by the developer's code "
584
- "(`src/data_generation.py`, fixed seed) β€” 1,000 synthetic sensor readings "
585
- "(900 normal + 100 simulated-fault). Not logged from real equipment.<br>"
586
- "<b>What it describes:</b> conveyor/crane motor sensor readings β€” temperature, "
587
- "vibration, current draw, and belt speed β€” with the 'anomaly' readings modelled "
588
- "on realistic failure signatures (elevated temp/vibration/current with reduced "
589
- "belt speed, as seen with bearing wear or motor overload).<br>"
590
- "<b>Function:</b> an Isolation Forest model trained unsupervised (it never sees "
591
- "an anomaly label) learns what 'normal' sensor behaviour looks like, then flags "
592
- "any new reading β€” like the ones you enter below β€” that deviates from it, as an "
593
- "early-warning signal before an unplanned equipment stoppage."
594
- ))
 
595
  preset_dropdown = gr.Dropdown(
596
  choices=list(ANOMALY_PRESETS.keys()), label="Load a preset reading", value="Normal reading"
597
  )
 
327
  systems (AS/RS), conveyor & sortation lines, AGVs/AMRs, and the WMS/WCS
328
  software that orchestrates them β€” generate huge volumes of operational
329
  data: equipment telemetry, transactions, safety logs, and ad-hoc questions
330
+ from floor staff."
 
 
 
 
331
 
332
  ## What this demonstrates
333
 
 
575
  gr.Dataframe(orders_df, wrap=True)
576
 
577
  with gr.Tab("⚠️ Predictive Maintenance"):
578
+ with gr.Accordion("ℹ️ About Data & Predictive System", open=False):
579
+ gr.HTML(data_badge(
580
+ "πŸ§ͺ <b>Source:</b> randomly generated by the developer's code "
581
+ "(`src/data_generation.py`, fixed seed) β€” 1,000 synthetic sensor readings "
582
+ "(900 normal + 100 simulated-fault). Not logged from real equipment.<br>"
583
+ "<b>What it describes:</b> conveyor/crane motor sensor readings β€” temperature, "
584
+ "vibration, current draw, and belt speed β€” with the 'anomaly' readings modelled "
585
+ "on realistic failure signatures (elevated temp/vibration/current with reduced "
586
+ "belt speed, as seen with bearing wear or motor overload).<br>"
587
+ "<b>Function:</b> an Isolation Forest model trained unsupervised (it never sees "
588
+ "an anomaly label) learns what 'normal' sensor behaviour looks like, then flags "
589
+ "any new reading β€” like the ones you enter below β€” that deviates from it, as an "
590
+ "early-warning signal before an unplanned equipment stoppage."
591
+ ))
592
  preset_dropdown = gr.Dropdown(
593
  choices=list(ANOMALY_PRESETS.keys()), label="Load a preset reading", value="Normal reading"
594
  )