| | import gradio as gr |
| |
|
| | from mcp_servers.mcp_manager import start_mcp_servers |
| | start_mcp_servers() |
| |
|
| | from support.log_manager import logger |
| | from support.game_settings import custom_header |
| | from support.settings import SERVER_PORT |
| | from pages import home, play, stats, how_to_play |
| | from support.style.css import final_css |
| | from support.game_settings import JS |
| |
|
| |
|
| | |
| | with gr.Blocks(fill_width=True, title="Agentic Codenames", css=final_css, js=JS) as demo: |
| | gr.HTML(custom_header) |
| |
|
| | with gr.Tabs(elem_classes="hidden-tabs"): |
| | with gr.Tab("๐ Home", id="home_id_tab", elem_classes="tab_btn"): |
| | home.demo.render() |
| |
|
| | with gr.Tab("โ How to Play", id="how_to_play_id_tab", elem_classes="tab_btn"): |
| | how_to_play.demo.render() |
| |
|
| | with gr.Tab("๐ฎ Play", id="play_id_tab", elem_classes="tab_btn"): |
| | play.demo.render() |
| |
|
| | with gr.Tab("๐ Stats", id="stats_id_tab", elem_classes="tab_btn"): |
| | stats.demo.render() |
| |
|
| |
|
| | if __name__ == "__main__": |
| | demo.launch( |
| | share=False, |
| | inline=True, |
| | server_name='0.0.0.0', |
| | server_port=SERVER_PORT, |
| | allowed_paths=["assets"], |
| | favicon_path='assets/favicon.ico' |
| | ) |
| |
|