digiwild / app /wounded.py
vancauwe's picture
feat: config and ui for physical changes
59d7f29
raw
history blame
1.1 kB
import gradio as gr
from top_section import create_top_section, create_dropdown
from followup_events import create_followup_section
from select_bird import create_bird_anatomy
def show_section_wounded(visible):
with gr.Column(visible=visible, elem_id="wounded") as wounded_section:
gr.Markdown("# Wounded Animal")
gr.Markdown("# Please describe the wound's cause.", label="description")
image_row, button_collision, button_deliberate_destruction, button_indirect_destruction, button_natural_cause = create_top_section(visible)
dropdown_row, dropdown, dropdown_level2, openfield_level2, dropdown_extra_level2 = create_dropdown(visible)
img_with_boxes, physical_checkbox, physical_text = create_bird_anatomy("wounded")
create_followup_section()
# Change variables and names
return wounded_section, button_collision, button_deliberate_destruction, button_indirect_destruction, button_natural_cause, dropdown, dropdown_level2, openfield_level2, dropdown_extra_level2, img_with_boxes, physical_checkbox, physical_text