FlameF0X commited on
Commit
30da8a8
·
verified ·
1 Parent(s): 77a3c36

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -19
README.md CHANGED
@@ -71,25 +71,7 @@ o1 now features a hybrid neural architecture:
71
  You can load the model and play against o1 directly from the Hugging Face Hub, or use the Streamlit web app:
72
 
73
  ```python
74
- import torch
75
- from huggingface_hub import hf_hub_download
76
- from o1.agent import Agent
77
-
78
- # Download the model weights from Hugging Face Hub
79
- model_path = hf_hub_download(repo_id="FlameF0X/o1", filename="o1_agent.pth")
80
-
81
- # Initialize the agent and load weights
82
- agent = Agent()
83
- agent.model.load_state_dict(torch.load(model_path, map_location='cpu'))
84
- agent.model.eval()
85
-
86
- # Now agent is ready to use
87
- # Example: get policy and value for the starting position
88
- import chess
89
- board = chess.Board()
90
- policy_logits, value = agent.predict(board)
91
- print("Policy logits shape:", policy_logits.shape)
92
- print("Value:", value.item())
93
  ```
94
 
95
  Or launch the web UI:
 
71
  You can load the model and play against o1 directly from the Hugging Face Hub, or use the Streamlit web app:
72
 
73
  ```python
74
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  ```
76
 
77
  Or launch the web UI: