rwkv-mcts-cot / app.py
tenet's picture
Create app.py
08d5115 verified
raw
history blame contribute delete
468 Bytes
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()