LiangLabUMB commited on
Commit
050acf9
·
verified ·
1 Parent(s): 3a3ecf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -410,9 +410,9 @@ with gr.Blocks(
410
  gr.Markdown("# CellposeCellCounter")
411
  gr.Markdown("For accurate cell confluency, crop the image to display only desired area.")
412
 
413
- # Define State components to store masks and image data across function calls
414
- masks_state = pack_array(masks)
415
- image_state = pack_array(processed_image_np)
416
 
417
  with gr.Tab("Image Editor (Draw Selection)"):
418
  gr.Markdown("### Draw selection and run segmentation")
 
410
  gr.Markdown("# CellposeCellCounter")
411
  gr.Markdown("For accurate cell confluency, crop the image to display only desired area.")
412
 
413
+ masks_state = gr.State(value=None)
414
+ image_state = gr.State(value=None)
415
+
416
 
417
  with gr.Tab("Image Editor (Draw Selection)"):
418
  gr.Markdown("### Draw selection and run segmentation")