File size: 468 Bytes
08d5115
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()