digiwild / app /wounded.py
vancauwe's picture
feat: follow up events section with config
0eddb61
raw
history blame
903 Bytes
import gradio as gr
from top_section import create_top_section, create_dropdown
from followup_events import create_followup_section
def show_section_wounded(visible):
with gr.Column(visible=visible) as wounded_section:
gr.Markdown("# Wounded Animal")
gr.Markdown("## Please describe the wound's cause.")
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)
gr.Markdown("## Follow-up Events")
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