notUbaid commited on
Commit
8543a2c
·
verified ·
1 Parent(s): 53c4a2d

Upload webapp.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. webapp.py +7 -4
webapp.py CHANGED
@@ -427,19 +427,22 @@ def main():
427
  st.session_state["target_phrase"] = "the red rabbit ran around the green yard"
428
 
429
  # Top Brand Navigation Bar
430
- st.markdown("""
 
 
 
431
  <div class="brand-nav">
432
  <div>
433
  <div class="brand-title">
434
  ANVAYA
435
- <span class="brand-tag">v2.0 Production</span>
436
  </div>
437
- <div class="brand-sub">Multi-Modal Speech Pathology Diagnostics & Biomechanical Articulation Analysis</div>
438
  </div>
439
  <div>
440
  <span class="status-badge">
441
  <span class="status-dot"></span>
442
- Engine Online (CUDA / Sub-Second)
443
  </span>
444
  </div>
445
  </div>
 
427
  st.session_state["target_phrase"] = "the red rabbit ran around the green yard"
428
 
429
  # Top Brand Navigation Bar
430
+ import torch
431
+ device_label = "CUDA (GPU Accelerated)" if torch.cuda.is_available() else "CPU"
432
+
433
+ st.markdown(f"""
434
  <div class="brand-nav">
435
  <div>
436
  <div class="brand-title">
437
  ANVAYA
438
+ <span class="brand-tag">v2.0 Assistant</span>
439
  </div>
440
+ <div class="brand-sub">Multi-Modal Speech Screening, Phonetic Alignment & Acoustic Phonation Analysis</div>
441
  </div>
442
  <div>
443
  <span class="status-badge">
444
  <span class="status-dot"></span>
445
+ Engine Online · {device_label}
446
  </span>
447
  </div>
448
  </div>