Duzduran commited on
Commit
efadf48
1 Parent(s): 08cb3fe

visualization optimize

Browse files
Files changed (1) hide show
  1. app.py +21 -2
app.py CHANGED
@@ -117,14 +117,33 @@ def process_and_display(flair_file, t1ce_file, seg_file, slice_index):
117
  return subplot_img
118
 
119
 
 
 
 
120
  # Gradio Interface
121
- with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  with gr.Row():
123
  flair_input = gr.File(label="Upload Flair NIfTI File")
124
  t1ce_input = gr.File(label="Upload T1ce NIfTI File")
125
  seg_input = gr.File(label="Upload Seg NIfTI File")
126
  slice_input = gr.Slider(minimum=0, maximum=VOLUME_SLICES - 1, label="Slice Index")
127
- #eval_class_input = gr.Dropdown(choices=list(range(len(SEGMENT_CLASSES))), label="Select Class")
128
  submit_button = gr.Button("Submit")
129
 
130
  with gr.Row():
 
117
  return subplot_img
118
 
119
 
120
+ title = "<center><strong><font size='8'>Open-Vocabulary SAM<font></strong></center>"
121
+ css = "h1 { text-align: center } .about { text-align: justify; padding-left: 10%; padding-right: 10%; }"
122
+
123
  # Gradio Interface
124
+ with gr.Blocks(css=css, title="Tumor Segmentation") as demo:
125
+ gr.Markdown(
126
+ """
127
+
128
+ <p style="text-align: center; font-size: 24px;">MRI Brain Tumor Segmentation</p>
129
+
130
+ <p style="text-align: center;">made by Ahmet Duzduran</p>
131
+
132
+
133
+ ### <p style="text-align: left;">Faculty: Faculty of Computer Science</p>
134
+
135
+ ### <p style="text-align: left;">Specialization: Intelligent Systems and Data Science</p>
136
+
137
+ ### <p style="text-align: left;">Supervisor: Wojciech Oronowicz, PhD, Prof. Of PJATK</p>
138
+
139
+ """
140
+ )
141
  with gr.Row():
142
  flair_input = gr.File(label="Upload Flair NIfTI File")
143
  t1ce_input = gr.File(label="Upload T1ce NIfTI File")
144
  seg_input = gr.File(label="Upload Seg NIfTI File")
145
  slice_input = gr.Slider(minimum=0, maximum=VOLUME_SLICES - 1, label="Slice Index")
146
+ # eval_class_input = gr.Dropdown(choices=list(range(len(SEGMENT_CLASSES))), label="Select Class")
147
  submit_button = gr.Button("Submit")
148
 
149
  with gr.Row():