Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,8 @@ def predict_tiebreak(win_odds, loser_odds):
|
|
28 |
return round(prob, 2), round(odds_minima, 2)
|
29 |
|
30 |
# Interface Gradio
|
31 |
-
inputs = [gr.
|
32 |
-
outputs = [gr.
|
33 |
|
34 |
# Criação da interface
|
35 |
gr.Interface(fn=predict_tiebreak, inputs=inputs, outputs=outputs, title="Previsão de Tiebreaks",
|
|
|
28 |
return round(prob, 2), round(odds_minima, 2)
|
29 |
|
30 |
# Interface Gradio
|
31 |
+
inputs = [gr.Number(label="Win Odds"), gr.Number(label="Loser Odds")]
|
32 |
+
outputs = [gr.Textbox(label="Probabilidade de menos de 1.5 Tiebreaks"), gr.Textbox(label="Odds Mínima")]
|
33 |
|
34 |
# Criação da interface
|
35 |
gr.Interface(fn=predict_tiebreak, inputs=inputs, outputs=outputs, title="Previsão de Tiebreaks",
|