Spaces:
Sleeping
Sleeping
| # import gradio as gr | |
| # from tabs import business, workflow, performance, fairness | |
| # css=""" | |
| # .center-me { | |
| # margin-left: auto !important; | |
| # margin-right: auto !important; | |
| # display: block !important; | |
| # text-align: center; | |
| # } | |
| # """ | |
| # def main(): | |
| # with gr.Blocks(css=css) as demo: | |
| # gr.Markdown("## Churn Prediction Dashboard") | |
| # with gr.Tab("Business Insights"): | |
| # business.render() | |
| # with gr.Tab("Model Selection Workflow"): | |
| # workflow.render() | |
| # with gr.Tab("Model Performance & Drivers"): | |
| # performance.render() | |
| # with gr.Tab("Fairness"): | |
| # fairness.render() | |
| # demo.launch() | |
| # if __name__ == "__main__": | |
| # main() | |
| # app.py — single-page version | |
| import gradio as gr | |
| from tabs import business # keep only this import | |
| with open("style/style.css") as f: | |
| global_css = f.read() | |
| def main(): | |
| with gr.Blocks(css=global_css) as demo: | |
| gr.Markdown("# Churn Prediction Dashboard", elem_classes="center-me") | |
| business.render() | |
| demo.launch() | |
| if __name__ == "__main__": | |
| main() | |