vukadinovic936 commited on
Commit
71c1b43
1 Parent(s): ed77274

added description

Browse files
Files changed (1) hide show
  1. app.py +23 -2
app.py CHANGED
@@ -66,10 +66,31 @@ def load_initial_setup():
66
  return Gs, Gs_kwargs, latent_controls, sess
67
 
68
  if __name__=="__main__":
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
 
70
- st.header('GANcMRI DEMO')
71
  sphericity_index = st.slider("Sphericity Index", -2., 3., 0.0)
72
- lv_area = st.slider("LV Area", -2., 3., 0.0)
73
  # Check if 'random_number' is already in the session state, if not, set a random number for seed
74
  if 'random_number' not in st.session_state:
75
  st.session_state.random_number = random.randint(0, 1000000)
 
66
  return Gs, Gs_kwargs, latent_controls, sess
67
 
68
  if __name__=="__main__":
69
+ # Set the directory to the script's location
70
+ dir_path = os.path.dirname(os.path.realpath(__file__))
71
+ heart_image_path = os.path.join(dir_path, 'heart.png')
72
+ st.markdown("""
73
+ <style>
74
+ .logo-test{
75
+ font-weight:700 !important;
76
+ font-size:50px !important;
77
+ color:#FF0000 !important;
78
+ text-align: center;
79
+ }
80
+ </style>
81
+ """,unsafe_allow_html=True)
82
+ st.markdown('<p class="logo-test">GANcMRI</p>', unsafe_allow_html=True)
83
+
84
+ # Description sliders
85
+ st.markdown("""
86
+ This demo showcases GANcMRI: Synthetic cardiac MRI generation.Upon starting the demo or refreshing the page, a unique video will be automatically generated based on two methods described in our paper: ED-to-ES and Frame-to-Frame. These methods simulate cardiac function and movement in a realistic manner. The demo includes interactive sliders that allow you to adjust two parameters:
87
+
88
+ 1. **Sphericity Index:** This slider controls the sphericity of the left ventricle in the generated video. [The sphericity index](https://www.cell.com/med/pdf/S2666-6340(23)00069-7.pdf) is a measure of how spherical (round) the left ventricle appears, which is an important aspect in assessing certain heart conditions.
89
+ 2. **Left Ventricular Volume:** With this slider, you can modify the size of the left ventricle.
90
+ """)
91
 
 
92
  sphericity_index = st.slider("Sphericity Index", -2., 3., 0.0)
93
+ lv_area = st.slider("Left Ventricular Volume", -2., 3., 0.0)
94
  # Check if 'random_number' is already in the session state, if not, set a random number for seed
95
  if 'random_number' not in st.session_state:
96
  st.session_state.random_number = random.randint(0, 1000000)