cciausu97 commited on
Commit
13ccc65
·
verified ·
1 Parent(s): a5f2b31

Update app.py

Browse files

added IDC summary and SeriesInstanceUID selection gif

Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -8,6 +8,7 @@ import shutil
8
  import dcm2niix
9
  import subprocess
10
  import random
 
11
 
12
  from model.data_process.demo_data_process import process_ct_gt
13
  import numpy as np
@@ -150,16 +151,25 @@ def clear_file():
150
  clear_prompts()
151
 
152
  #############################################
 
 
 
 
 
 
153
 
 
 
 
154
  st.image(Image.open('model/asset/overview back.png'), use_column_width=True)
155
 
156
  github_col, arxive_col = st.columns(2)
157
 
158
  with github_col:
159
- st.write('GitHub repo:https://github.com/BAAI-DCAI/SegVol')
160
 
161
  with arxive_col:
162
- st.write('Paper:https://arxiv.org/abs/2311.13385')
163
 
164
 
165
  # modify demo case here
 
8
  import dcm2niix
9
  import subprocess
10
  import random
11
+ import base64
12
 
13
  from model.data_process.demo_data_process import process_ct_gt
14
  import numpy as np
 
151
  clear_prompts()
152
 
153
  #############################################
154
+ st.image(Image.open('idc_intro_extended.jpg'), use_column_width=True)
155
+ st.write("Please see below how to select a SeriesInstanceUID from Imaging Data Commons Portal to try with SegVol!")
156
+ file_ = open("idc_serieUID_selection.gif", "rb")
157
+ contents = file_.read()
158
+ data_url = base64.b64encode(contents).decode("utf-8")
159
+ file_.close()
160
 
161
+ st.write("What is left is to paste the copied SeriesInstanceUID into the filter by SeriesInstanceUID box.")
162
+
163
+ st.write("Below is an overview of the SegVol method and authors acknowledgement.")
164
  st.image(Image.open('model/asset/overview back.png'), use_column_width=True)
165
 
166
  github_col, arxive_col = st.columns(2)
167
 
168
  with github_col:
169
+ st.write('SegVol GitHub repo:https://github.com/BAAI-DCAI/SegVol')
170
 
171
  with arxive_col:
172
+ st.write('SegVol Paper:https://arxiv.org/abs/2311.13385')
173
 
174
 
175
  # modify demo case here