TuringsSolutions commited on
Commit
ab9fb22
·
verified ·
1 Parent(s): b72cd40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -96,16 +96,16 @@ def predict_optimal_strategy(player_hand, pot_size, chips, n_opponents, flop_car
96
 
97
  # Gradio interface
98
  inputs = [
99
- gr.inputs.Textbox(label="Starting Hand (comma-separated, e.g., 'AS,KD')"),
100
- gr.inputs.Textbox(label="Pot Size"),
101
- gr.inputs.Textbox(label="Player's Amount of Chips"),
102
- gr.inputs.Textbox(label="Number of Opponents"),
103
- gr.inputs.Textbox(label="Flop Cards (comma-separated, e.g., '2H,7D,9C')")
104
  ]
105
 
106
  outputs = [
107
- gr.outputs.Textbox(label="Optimal Strategy"),
108
- gr.outputs.Textbox(label="Win Probability")
109
  ]
110
 
111
- gr.Interface(fn=predict_optimal_strategy, inputs=inputs, outputs=outputs, title="Poker Strategy Optimizer", description="Enter your poker hand and other details to get the optimal strategy and win probability.").launch()
 
96
 
97
  # Gradio interface
98
  inputs = [
99
+ gr.components.Textbox(label="Starting Hand (comma-separated, e.g., 'AS,KD')"),
100
+ gr.components.Textbox(label="Pot Size"),
101
+ gr.components.Textbox(label="Player's Amount of Chips"),
102
+ gr.components.Textbox(label="Number of Opponents"),
103
+ gr.components.Textbox(label="Flop Cards (comma-separated, e.g., '2H,7D,9C')")
104
  ]
105
 
106
  outputs = [
107
+ gr.components.Textbox(label="Optimal Strategy"),
108
+ gr.components.Textbox(label="Win Probability")
109
  ]
110
 
111
+ gr.Interface(fn=predict_optimal_strategy, inputs=inputs, outputs=outputs, title="Poker Strategy Optimizer", description="Enter your poker hand and other details to get the optimal strategy and win probability.").launch()