digiwild / app /followup_events.py
vancauwe's picture
feat: follow up events section with config
0eddb61
raw
history blame
687 Bytes
import gradio as gr
from config_utils import get_custom_config_dropdowns
def create_followup_section():
followup_config = get_custom_config_dropdowns("/assets/dropdowns/followup_config.json")
followup_config = followup_config["Event follow-up"]
with gr.Row():
for key, val in followup_config.items():
followup_label = key
if "Options" in val.keys():
gr.Dropdown(choices=val["Options"], label=followup_label, visible=True)
with gr.Row():
for key, val in followup_config.items():
followup_label = key
if "Open" in val.keys():
gr.Textbox(label=followup_label, visible=True)