JuanPabloAnselmo commited on
Commit
beb55b6
1 Parent(s): b113a57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -4
app.py CHANGED
@@ -29,9 +29,27 @@ def predict(mainline_moves, Opening, WhiteFideId, BlackFideId, WhiteElo, BlackEl
29
  # Definir los widgets de entrada
30
 
31
  mainline_moves = gr.inputs.Number(label="Mainline Moves")
32
- Opening = gr.inputs.Textbox(label="Opening")
33
- WhiteFideId = gr.inputs.Textbox(label="White Fide ID")
34
- BlackFideId = gr.inputs.Textbox(label="Black Fide ID")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  WhiteElo = gr.inputs.Slider(label="White Elo",
36
  minimum=0, maximum=3000, step=10,
37
  default=2400)
@@ -53,4 +71,4 @@ iface = gr.Interface(fn=predict,
53
  description="Coloca los datos solicitados y descubre el resultado de la partida!")
54
 
55
  # Ejecutar la interfaz
56
- iface.launch()
 
29
  # Definir los widgets de entrada
30
 
31
  mainline_moves = gr.inputs.Number(label="Mainline Moves")
32
+ Opening = gr.inputs.Dropdown(["sicilian", "qgd", "english", "reti",
33
+ "french", "king's indian", "queen's pawn game",
34
+ "ruy lopez", "caro-kann", "nimzo-indian",
35
+ "queen's indian", "giuoco piano", "gruenfeld",
36
+ "catalan"],
37
+ label="Opening",
38
+ )
39
+ WhiteFideId = gr.inputs.Dropdown([1503014, 4168119, 13400924,
40
+ 5000017, 5202213, 2020009,
41
+ 2016192, 24116068, 12573981,
42
+ 8603677, 13300474, 738590, 4126025,
43
+ 3503240, 13401319, 623539,
44
+ 14204118,46616543, 5029465, 4158814 ],
45
+ label="White Fide ID")
46
+ BlackFideId = gr.inputs.Dropdown([1503014, 4168119, 13400924,
47
+ 5000017, 5202213, 2020009,
48
+ 2016192, 24116068, 12573981,
49
+ 8603677, 13300474, 738590, 4126025,
50
+ 3503240, 13401319, 623539,
51
+ 14204118,46616543, 5029465, 4158814 ],
52
+ label="Black Fide ID")
53
  WhiteElo = gr.inputs.Slider(label="White Elo",
54
  minimum=0, maximum=3000, step=10,
55
  default=2400)
 
71
  description="Coloca los datos solicitados y descubre el resultado de la partida!")
72
 
73
  # Ejecutar la interfaz
74
+ iface.launch()