faceless-void commited on
Commit
4a80fb4
·
verified ·
1 Parent(s): 2cf02f9

Fix: remove show_download_button (not in Gradio 6.x Image)

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -403,15 +403,15 @@ with gr.Blocks(title="UNIStainNet — Virtual IHC Staining") as demo:
403
 
404
  gr.HTML('<p class="section-heading">Input & Ground Truth</p>')
405
  with gr.Row():
406
- gal_he = gr.Image(type="pil", label="H&E Input", height=280, show_download_button=False)
407
- gal_gt = gr.Image(type="pil", label="Ground Truth IHC", height=280, show_download_button=False)
408
 
409
  gr.HTML('<p class="section-heading">Generated IHC Stains (all from the same H&E)</p>')
410
  with gr.Row():
411
- gal_her2 = gr.Image(type="pil", label="Generated HER2", height=280, show_download_button=False)
412
- gal_ki67 = gr.Image(type="pil", label="Generated Ki67", height=280, show_download_button=False)
413
- gal_er = gr.Image(type="pil", label="Generated ER", height=280, show_download_button=False)
414
- gal_pr = gr.Image(type="pil", label="Generated PR", height=280, show_download_button=False)
415
 
416
  def _show_gallery_wrapper(display_name):
417
  return show_gallery(display_name, gallery_data, gallery_name_map)
 
403
 
404
  gr.HTML('<p class="section-heading">Input & Ground Truth</p>')
405
  with gr.Row():
406
+ gal_he = gr.Image(type="pil", label="H&E Input", height=280)
407
+ gal_gt = gr.Image(type="pil", label="Ground Truth IHC", height=280)
408
 
409
  gr.HTML('<p class="section-heading">Generated IHC Stains (all from the same H&E)</p>')
410
  with gr.Row():
411
+ gal_her2 = gr.Image(type="pil", label="Generated HER2", height=280)
412
+ gal_ki67 = gr.Image(type="pil", label="Generated Ki67", height=280)
413
+ gal_er = gr.Image(type="pil", label="Generated ER", height=280)
414
+ gal_pr = gr.Image(type="pil", label="Generated PR", height=280)
415
 
416
  def _show_gallery_wrapper(display_name):
417
  return show_gallery(display_name, gallery_data, gallery_name_map)