hash-map commited on
Commit
5c8b0c5
·
verified ·
1 Parent(s): 009dd66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -31,7 +31,13 @@ def predict_from_image(img):
31
 
32
 
33
  with gr.Blocks() as demo:
34
- gr.Markdown("# ♟️ Chess AI from Image")
 
 
 
 
 
 
35
 
36
  with gr.Row():
37
  image = gr.Image(type="pil", label="Upload Chessboard Image")
@@ -40,8 +46,8 @@ with gr.Blocks() as demo:
40
  fen_out = gr.Textbox(label="Detected FEN")
41
  moves_out = gr.Textbox(label="Predicted Best Moves")
42
  with gr.Row():
43
- moves_white = gr.Textbox(label="White's Best Moves", lines=6)
44
- moves_black = gr.Textbox(label="Black's Best Moves", lines=6)
45
 
46
  btn = gr.Button("Analyze Board")
47
 
 
31
 
32
 
33
  with gr.Blocks() as demo:
34
+ gr.Markdown("""
35
+ # chess move predictor using alpha beta pruning
36
+ _Upload an image of an online chessboard and get the FEN & best moves._
37
+
38
+ ⚠️ **Warning:** Please upload screenshots from online chess games (e.g., Lichess, Chess.com).
39
+ Physical/real-world chessboard photos are not supported yet.
40
+ """)
41
 
42
  with gr.Row():
43
  image = gr.Image(type="pil", label="Upload Chessboard Image")
 
46
  fen_out = gr.Textbox(label="Detected FEN")
47
  moves_out = gr.Textbox(label="Predicted Best Moves")
48
  with gr.Row():
49
+ moves_white = gr.Textbox(label="White's Moves", lines=6)
50
+ moves_black = gr.Textbox(label="Black's Moves", lines=6)
51
 
52
  btn = gr.Button("Analyze Board")
53