BoHuangLab commited on
Commit
664846d
·
verified ·
1 Parent(s): 188d57a

Virtual OpenCell: show the 2D/3D switch again (3D set regenerated)

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -340,11 +340,6 @@ def build_substitution_scan_section():
340
  show_progress="hidden", trigger_mode="always_last")
341
 
342
 
343
- # The 3D set is withdrawn while it is regenerated (the first run decoded with the wrong VAE), so
344
- # the 2D/3D switch is hidden and the tab stays on 2D. Set True once virtual_staining_3d is back.
345
- SHOW_3D = False
346
-
347
-
348
  def build_virtual_opencell_section():
349
  """Pick an OpenCell protein and browse CELL-FM's virtual staining of it, laid out like an
350
  OpenCell target page: the real cell line's annotations on the left, the images on the right.
@@ -440,7 +435,7 @@ def build_virtual_opencell_section():
440
  with gr.Column(scale=6):
441
  with gr.Row():
442
  mode = gr.Radio(["2D", "3D"], value="2D", label="Virtual staining", scale=0,
443
- min_width=170, elem_classes="vo-buttons", visible=SHOW_3D)
444
  channel = gr.Radio(viewer.CHANNELS, value=defaults[0], label="Channel",
445
  elem_classes="vo-buttons")
446
  download = gr.DownloadButton("Download TIFF", value=file0, size="sm", variant="secondary",
 
340
  show_progress="hidden", trigger_mode="always_last")
341
 
342
 
 
 
 
 
 
343
  def build_virtual_opencell_section():
344
  """Pick an OpenCell protein and browse CELL-FM's virtual staining of it, laid out like an
345
  OpenCell target page: the real cell line's annotations on the left, the images on the right.
 
435
  with gr.Column(scale=6):
436
  with gr.Row():
437
  mode = gr.Radio(["2D", "3D"], value="2D", label="Virtual staining", scale=0,
438
+ min_width=170, elem_classes="vo-buttons")
439
  channel = gr.Radio(viewer.CHANNELS, value=defaults[0], label="Channel",
440
  elem_classes="vo-buttons")
441
  download = gr.DownloadButton("Download TIFF", value=file0, size="sm", variant="secondary",