mouseland commited on
Commit
ede0bbf
·
verified ·
1 Parent(s): f9f94b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -258,7 +258,7 @@ def update_image(filepath):
258
  for f in filepath:
259
  print(f)
260
 
261
- return filepath[-1] , '', ''
262
 
263
 
264
  def update_button(filepath):
@@ -269,7 +269,7 @@ def update_button(filepath):
269
  #b1 = gr.DownloadButton("Download masks as TIFF", visible=False)
270
  #b2 = gr.DownloadButton("Download outline image as PNG", visible=False)
271
 
272
- return [filepath] , '', ''
273
 
274
  with gr.Blocks(title = "Hello",
275
  css=".gradio-container {background:purple;}") as demo:
@@ -301,7 +301,6 @@ with gr.Blocks(title = "Hello",
301
  img_outlines = gr.Image(label = "Outlines", type = "filepath", format = 'png') #, width = "50vw", height = "20vw")
302
  #img_overlay = gr.Image(label = "Overlay", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
303
  flows = gr.Image(label = "Cellpose flows", type = "filepath", format = 'png') #, width = "50vw", height = "20vw")
304
- print(flows)
305
 
306
 
307
  sample_list = []
 
258
  for f in filepath:
259
  print(f)
260
 
261
+ return filepath[-1] , None, None
262
 
263
 
264
  def update_button(filepath):
 
269
  #b1 = gr.DownloadButton("Download masks as TIFF", visible=False)
270
  #b2 = gr.DownloadButton("Download outline image as PNG", visible=False)
271
 
272
+ return [filepath] , None, None
273
 
274
  with gr.Blocks(title = "Hello",
275
  css=".gradio-container {background:purple;}") as demo:
 
301
  img_outlines = gr.Image(label = "Outlines", type = "filepath", format = 'png') #, width = "50vw", height = "20vw")
302
  #img_overlay = gr.Image(label = "Overlay", type = "pil", format = 'png') #, width = "50vw", height = "20vw")
303
  flows = gr.Image(label = "Cellpose flows", type = "filepath", format = 'png') #, width = "50vw", height = "20vw")
 
304
 
305
 
306
  sample_list = []