MyNameIsSimon commited on
Commit
810fe52
·
1 Parent(s): 4d9a6c9

fix rounding on current balance

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -160,7 +160,7 @@ with gr.Blocks() as demo:
160
  gr.Label(f"Total bets: {roi['total_bets']}")
161
  gr.Label(f"Bets won: {roi['bets_won']}")
162
  gr.Label(f"Bets lost: {roi['bets_lost']}")
163
- gr.Label(f"Current balance: {roi['current_balance']}")
164
  gr.LinePlot(roi["data"], x="date", y="bank_balance", title="Bank balance over time", y_title="Bank balance", x_title="Date")
165
  gr.Label("Today's predictions")
166
  gr.DataFrame(get_todays_predictions,
 
160
  gr.Label(f"Total bets: {roi['total_bets']}")
161
  gr.Label(f"Bets won: {roi['bets_won']}")
162
  gr.Label(f"Bets lost: {roi['bets_lost']}")
163
+ gr.Label(f"Current balance: {round(roi['current_balance'], 2)}")
164
  gr.LinePlot(roi["data"], x="date", y="bank_balance", title="Bank balance over time", y_title="Bank balance", x_title="Date")
165
  gr.Label("Today's predictions")
166
  gr.DataFrame(get_todays_predictions,