| import gradio as gr | |
| # from article import * | |
| from utility import * | |
| from application import * | |
| with gr.Blocks() as equivalent_page: | |
| ec_options["Equivalent Comparator"] = gr.Checkbox(label="Will an Equivalent Comparator (EC) be included?") | |
| ec_options["Equivalent Comparator require SD"] = gr.Checkbox(label="Does the EC require stratification of outcomes from the SD?") | |
| ec_options["Equivalent Comparator count"] = gr.Slider(minimum=0, maximum=10, step=1, label="How many ECs will be included?") | |
| with gr.Row(): | |
| with gr.Column(): | |
| gr.Markdown("## Equivalent Comparator 1") | |
| ec_1_name = gr.Textbox(lines=1, label="Name") | |
| ec_1_instruction = gr.Files(file_count="multiple",label="Instruction") | |
| ec_1_studies = gr.Files(file_count="multiple",label="Studies") | |
| with gr.Column(): | |
| gr.Markdown("## Equivalent Comparator 2") | |
| ec_2_name = gr.Textbox(lines=1, label="Name") | |
| ec_2_instruction = gr.Files(file_count="multiple",label="Instruction") | |
| ec_2_studies = gr.Files(file_count="multiple",label="Studies") | |