Update app.py
Browse files
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.
|
100 |
-
gr.
|
101 |
-
gr.
|
102 |
-
gr.
|
103 |
-
gr.
|
104 |
]
|
105 |
|
106 |
outputs = [
|
107 |
-
gr.
|
108 |
-
gr.
|
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()
|