Update app.py
Browse files
app.py
CHANGED
|
@@ -7,14 +7,14 @@ import gradio as gr
|
|
| 7 |
import requests
|
| 8 |
from typing import Optional, List, Dict, Any
|
| 9 |
|
| 10 |
-
def
|
| 11 |
"""Chess position evaluation.
|
| 12 |
|
| 13 |
Args:
|
| 14 |
-
fen: Chess position in FEN
|
| 15 |
|
| 16 |
Returns:
|
| 17 |
-
|
| 18 |
"""
|
| 19 |
url = "https://stockfish.online/api/s/v2.php"
|
| 20 |
params = {"fen": fen, "depth": 12}
|
|
|
|
| 7 |
import requests
|
| 8 |
from typing import Optional, List, Dict, Any
|
| 9 |
|
| 10 |
+
def position_evaluation(fen):
|
| 11 |
"""Chess position evaluation.
|
| 12 |
|
| 13 |
Args:
|
| 14 |
+
fen (str): Chess position in FEN
|
| 15 |
|
| 16 |
Returns:
|
| 17 |
+
str: Chess position evaluation
|
| 18 |
"""
|
| 19 |
url = "https://stockfish.online/api/s/v2.php"
|
| 20 |
params = {"fen": fen, "depth": 12}
|