drvikasgaur commited on
Commit
b0ea846
·
verified ·
1 Parent(s): 8103905

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -11
app.py CHANGED
@@ -1280,14 +1280,14 @@ def build_ui():
1280
 
1281
  with gr.Blocks(title="TB X-ray Assistant (TBNet + RADIO)", css=css) as demo:
1282
 
1283
- # ---------------------------
1284
- # Welcome screen (shown first)
1285
- # ---------------------------
1286
- with gr.Column(visible=True) as welcome_screen:
1287
- gr.Markdown('<div class="title">Welcome — TB X-ray Assistant (HF Spaces)</div>')
1288
-
1289
- gr.Markdown(
1290
- f"""
1291
  <div class="card">
1292
  <div style="font-size:16px; font-weight:900; margin-bottom:8px;">What this Space does</div>
1293
  <div style="opacity:0.92;">
@@ -1362,9 +1362,9 @@ with gr.Column(visible=True) as welcome_screen:
1362
  Device policy: <b>{DEVICE}</b> (FORCE_CPU={FORCE_CPU})
1363
  </div>
1364
  """
1365
- )
1366
 
1367
- continue_btn = gr.Button("Continue →", variant="primary")
1368
 
1369
  # ---------------------------
1370
  # Main app UI (hidden initially)
@@ -1388,7 +1388,11 @@ with gr.Column(visible=True) as welcome_screen:
1388
  tb_weights = gr.Textbox(label="TBNet weights (.pt)", value=DEFAULT_TB_WEIGHTS)
1389
  lung_weights = gr.Textbox(label="Lung U-Net weights (.pt)", value=DEFAULT_LUNG_WEIGHTS)
1390
 
1391
- backbone = gr.Dropdown(choices=["efficientnet_b0"], value="efficientnet_b0", label="TBNet backbone")
 
 
 
 
1392
 
1393
  threshold = gr.Slider(
1394
  0.01, 0.99, value=TBNET_SCREEN_THR, step=0.01,
 
1280
 
1281
  with gr.Blocks(title="TB X-ray Assistant (TBNet + RADIO)", css=css) as demo:
1282
 
1283
+ # ---------------------------
1284
+ # Welcome screen (shown first)
1285
+ # ---------------------------
1286
+ with gr.Column(visible=True) as welcome_screen:
1287
+ gr.Markdown('<div class="title">Welcome — TB X-ray Assistant (HF Spaces)</div>')
1288
+
1289
+ gr.Markdown(
1290
+ f"""
1291
  <div class="card">
1292
  <div style="font-size:16px; font-weight:900; margin-bottom:8px;">What this Space does</div>
1293
  <div style="opacity:0.92;">
 
1362
  Device policy: <b>{DEVICE}</b> (FORCE_CPU={FORCE_CPU})
1363
  </div>
1364
  """
1365
+ )
1366
 
1367
+ continue_btn = gr.Button("Continue →", variant="primary")
1368
 
1369
  # ---------------------------
1370
  # Main app UI (hidden initially)
 
1388
  tb_weights = gr.Textbox(label="TBNet weights (.pt)", value=DEFAULT_TB_WEIGHTS)
1389
  lung_weights = gr.Textbox(label="Lung U-Net weights (.pt)", value=DEFAULT_LUNG_WEIGHTS)
1390
 
1391
+ backbone = gr.Dropdown(
1392
+ choices=["efficientnet_b0"],
1393
+ value="efficientnet_b0",
1394
+ label="TBNet backbone"
1395
+ )
1396
 
1397
  threshold = gr.Slider(
1398
  0.01, 0.99, value=TBNET_SCREEN_THR, step=0.01,