AlsuGibadullina commited on
Commit
3bab50b
·
verified ·
1 Parent(s): 644dca8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -23
app.py CHANGED
@@ -627,26 +627,26 @@ def build_interface():
627
  outputs=object_output_image,
628
  )
629
 
630
- with gr.Tab("Сегментация"):
631
- gr.Markdown("## Сегментация")
632
- with gr.Row():
633
- segmentation_input_image = gr.Image(
634
- label="Загрузите изображение",
635
- type="pil",
636
- )
637
- segmentation_button = gr.Button("Применить")
638
-
639
- segmentation_output_image = gr.Image(
640
- label="Маска",
641
- )
642
-
643
- segmentation_button.click(
644
- fn=segment_image,
645
- inputs=segmentation_input_image,
646
- outputs=segmentation_output_image,
647
- )
648
-
649
- with gr.Tab("Глубина"):
650
  gr.Markdown("## Глубина (Depth Estimation)")
651
  with gr.Row():
652
 
@@ -698,7 +698,7 @@ def build_interface():
698
  outputs=caption_output_text,
699
  )
700
 
701
- with gr.Tab("Визуальные вопросы"):
702
  gr.Markdown("## Visual Question Answering")
703
  with gr.Row():
704
  vqa_input_image = gr.Image(
@@ -772,8 +772,8 @@ def build_interface():
772
  outputs=zero_shot_output_text,
773
  )
774
 
775
- with gr.Tab("Поиск изображений"):
776
- gr.Markdown("## Поиск изображений")
777
  with gr.Row():
778
 
779
  retrieval_dir = gr.File(
 
627
  outputs=object_output_image,
628
  )
629
 
630
+ ##with gr.Tab("Сегментация"):
631
+ ## gr.Markdown("## Сегментация")
632
+ ## with gr.Row():
633
+ ## segmentation_input_image = gr.Image(
634
+ ## label="Загрузите изображение",
635
+ ## type="pil",
636
+ ## )
637
+ ## segmentation_button = gr.Button("Применить")
638
+ ##
639
+ ## segmentation_output_image = gr.Image(
640
+ ## label="Маска",
641
+ ## )
642
+ ##
643
+ ## segmentation_button.click(
644
+ ## fn=segment_image,
645
+ ## inputs=segmentation_input_image,
646
+ ## outputs=segmentation_output_image,
647
+ ## )
648
+
649
+ with gr.Tab("Глубина изображения"):
650
  gr.Markdown("## Глубина (Depth Estimation)")
651
  with gr.Row():
652
 
 
698
  outputs=caption_output_text,
699
  )
700
 
701
+ with gr.Tab("Вопросы к изображению"):
702
  gr.Markdown("## Visual Question Answering")
703
  with gr.Row():
704
  vqa_input_image = gr.Image(
 
772
  outputs=zero_shot_output_text,
773
  )
774
 
775
+ with gr.Tab("Поиск изображений в папке"):
776
+ gr.Markdown("## Поиск изображений в папке")
777
  with gr.Row():
778
 
779
  retrieval_dir = gr.File(