Enoder commited on
Commit
38c0eeb
·
verified ·
1 Parent(s): bea6f61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -81,6 +81,13 @@ def run_script():
81
  send_to_discord(prices, 'crypto_prices_rectangle.png')
82
 
83
  st.image('crypto_prices_rectangle.png')
 
 
 
 
 
 
 
84
  st.success("Graphique créé et envoyé à Discord!")
85
 
86
  st.title("Suivi des Prix des Cryptomonnaies")
 
81
  send_to_discord(prices, 'crypto_prices_rectangle.png')
82
 
83
  st.image('crypto_prices_rectangle.png')
84
+
85
+ # Affichage des prix actuels sous chaque graphique
86
+ for coin, prices in prices_history.items():
87
+ if prices:
88
+ current_price = prices[-1][1]
89
+ st.write(f"Prix actuel de {coin.capitalize()}: ${current_price:.2f}")
90
+
91
  st.success("Graphique créé et envoyé à Discord!")
92
 
93
  st.title("Suivi des Prix des Cryptomonnaies")