import gradio as gr def calculate_percentage(*answers): yes_count = sum(answers) percentage = yes_count / len(answers) * 100 return f"{percentage}% Yes" inputs = [gr.Checkbox(label=f"Question {i+1}") for i in range(100)] output = gr.Textbox() iface = gr.Interface(fn=calculate_percentage, inputs=inputs, outputs=output) iface.launch()