Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| from main import run_mcts_cot | |
| # Create the Gradio interface | |
| initial_board = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] | |
| iface = gr.Interface( | |
| fn=run_mcts_cot, | |
| inputs=gr.inputs.JSON(), | |
| outputs=["text", "text"], | |
| title="RWKV CoT Demo for MCTS", | |
| description="This demo uses RWKV to generate Chain-of-Thought reasoning to guide the MCTS algorithm in a Tic-Tac-Toe game." | |
| ) | |
| # Launch the interface | |
| if __name__ == "__main__": | |
| iface.launch() |