bstraehle commited on
Commit
269a9e5
·
verified ·
1 Parent(s): e3fca31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,4 +1,5 @@
1
  # Reference: https://lichess.org/api#tag/analysis/get/api/cloud-eval
 
2
 
3
  import gradio as gr
4
  import requests
@@ -13,7 +14,8 @@ def evaluation(fen):
13
  Returns:
14
  The evaluation
15
  """
16
- url = "https://lichess.org/api/cloud-eval"
 
17
  params = {"fen": fen}
18
 
19
  try:
@@ -30,7 +32,7 @@ mcp = gr.Interface(
30
  inputs = [gr.Textbox(label = "FEN", value = "1K1N1Bq1/P4p1q/b1P5/4p3/3P4/1p4p1/pp6/1kr5")],
31
  outputs = [gr.Textbox(label = "Evaluation", interactive=True)],
32
  title="Chess Board Position Evaluation",
33
- description="Uses Lichess Analysis API based on Stockfish chess engine"
34
  )
35
 
36
  mcp.launch(mcp_server=True, ssr_mode=False)
 
1
  # Reference: https://lichess.org/api#tag/analysis/get/api/cloud-eval
2
+ # Reference: https://www.stockfish.online/docs.php
3
 
4
  import gradio as gr
5
  import requests
 
14
  Returns:
15
  The evaluation
16
  """
17
+ #url = "https://lichess.org/api/cloud-eval"
18
+ url = "https://stockfish.online/api/s/v2.php"
19
  params = {"fen": fen}
20
 
21
  try:
 
32
  inputs = [gr.Textbox(label = "FEN", value = "1K1N1Bq1/P4p1q/b1P5/4p3/3P4/1p4p1/pp6/1kr5")],
33
  outputs = [gr.Textbox(label = "Evaluation", interactive=True)],
34
  title="Chess Board Position Evaluation",
35
+ description="Uses Stockfish Online API"
36
  )
37
 
38
  mcp.launch(mcp_server=True, ssr_mode=False)