import gradio as gr from admin_interface import admin_gradio_interface from player_interface import player_gradio_interface from leaderboards import leaderboard_gradio_interface def app(): # Create a tabbed interface with Admin and Player interfaces with gr.Blocks() as app: gr.Markdown("# Quiz Game") with gr.Tabs(): with gr.TabItem("Player", id="player"): player_gradio_interface.render() with gr.TabItem("Admin", id="admin"): admin_gradio_interface.render() with gr.TabItem("Leaderboard", id="leaderboard"): leaderboard_gradio_interface.render() # Launch the app app.launch(share=True, pwa=True) if __name__ == "__main__": app()