TDHarshithReddy commited on
Commit
8fbb8be
·
1 Parent(s): e6a90a8

Fix: Replaced synthetic data with real CT sample from TotalSegmentator repo and fixed Gradio launch warning

Browse files
app.py CHANGED
@@ -269,12 +269,7 @@ def load_example(example_name):
269
 
270
  # Create Gradio interface
271
  with gr.Blocks(
272
- title="MONAI WholeBody CT Segmentation",
273
- theme=gr.themes.Soft(),
274
- css="""
275
- .gradio-container {max-width: 1200px !important}
276
- .output-image {min-height: 500px}
277
- """
278
  ) as demo:
279
  gr.Markdown("""
280
  # 🏥 MONAI WholeBody CT Segmentation
@@ -301,8 +296,7 @@ with gr.Blocks(
301
  gr.Markdown("### 📁 Example Files")
302
  example_gallery = gr.Examples(
303
  examples=[
304
- ["examples/sample_ct_chest.nii.gz"],
305
- ["examples/sample_ct_abdomen.nii.gz"],
306
  ],
307
  inputs=[file_input],
308
  label="Click to load example"
@@ -409,4 +403,10 @@ if __name__ == "__main__":
409
  os.makedirs("examples", exist_ok=True)
410
 
411
  # Launch the app
412
- demo.launch()
 
 
 
 
 
 
 
269
 
270
  # Create Gradio interface
271
  with gr.Blocks(
272
+ title="MONAI WholeBody CT Segmentation"
 
 
 
 
 
273
  ) as demo:
274
  gr.Markdown("""
275
  # 🏥 MONAI WholeBody CT Segmentation
 
296
  gr.Markdown("### 📁 Example Files")
297
  example_gallery = gr.Examples(
298
  examples=[
299
+ ["examples/sample_ct_real.nii.gz"],
 
300
  ],
301
  inputs=[file_input],
302
  label="Click to load example"
 
403
  os.makedirs("examples", exist_ok=True)
404
 
405
  # Launch the app
406
+ demo.launch(
407
+ theme=gr.themes.Soft(),
408
+ css="""
409
+ .gradio-container {max-width: 1200px !important}
410
+ .output-image {min-height: 500px}
411
+ """
412
+ )
examples/sample_ct_chest.nii.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e865ff9bc7929dfca1d81dc1c19ff3cadbb725740321e84fd3ad616951a1a3c5
3
- size 1237226
 
 
 
 
examples/{sample_ct_abdomen.nii.gz → sample_ct_real.nii.gz} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:529f536c2c150332ac1a6a190d155cf193ff7f7d14d5980879a27fc0a30a6ac1
3
- size 1078619
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbd3ae6d614d1d7ef3a46925c30c70038ed52da6b37fdd6afdc7b9b71387e3e1
3
+ size 2206612