sithuWiki commited on
Commit
cd2e2b4
·
verified ·
1 Parent(s): c850257

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -221,17 +221,16 @@ def create_miner_info(
221
 
222
  <div style="display:grid; grid-template-columns:1fr 1fr; gap:15px;">
223
  <div style="color:#f5f5f5;">
224
- <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">{machine_hashrate:.2f} TH/s</strong></p>
225
- <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">{machine_power:.1f} W</strong></p>
226
- <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">{machine_efficiency:.2f} W/TH</strong></p>
227
- <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">{machine_hashrate:.2f} TH/s</strong></p>
228
  # <p style="margin:4px 0;"><strong>Hashrate:</strong> {machine_hashrate:.2f} TH/s</p>
229
  # <p style="margin:4px 0;"><strong>Power:</strong> {machine_power:.1f} W</p>
230
  # <p style="margin:4px 0;"><strong>Efficiency:</strong> {machine_efficiency:.2f} W/TH</p>
231
  </div>
232
  <div style="color:#f5f5f5;">
233
  <p style="margin:4px 0;">
234
- <strong>Price (as of {pred_date.date()}):</strong>
235
  ${price:,.2f}
236
  <span style="
237
  background:{badge_color};
@@ -244,9 +243,12 @@ def create_miner_info(
244
  {source}
245
  </span>
246
  </p>
247
- <p style="margin:4px 0;"><strong>Electricity rate:</strong> {elec_rate:.4f} USD/kWh</p>
248
- <p style="margin:4px 0;"><strong>Cost bucket:</strong> {region_bucket}</p>
249
- <p style="margin:4px 0;"><strong>Estimated daily elec cost:</strong> ${daily_cost:,.2f}</p>
 
 
 
250
  </div>
251
  </div>
252
  </div>
 
221
 
222
  <div style="display:grid; grid-template-columns:1fr 1fr; gap:15px;">
223
  <div style="color:#f5f5f5;">
224
+ <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Hashrate:{machine_hashrate:.2f} TH/s</strong></p>
225
+ <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Power:{machine_power:.1f} W</strong></p>
226
+ <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Efficiency:{machine_efficiency:.2f} W/TH</strong></p>
 
227
  # <p style="margin:4px 0;"><strong>Hashrate:</strong> {machine_hashrate:.2f} TH/s</p>
228
  # <p style="margin:4px 0;"><strong>Power:</strong> {machine_power:.1f} W</p>
229
  # <p style="margin:4px 0;"><strong>Efficiency:</strong> {machine_efficiency:.2f} W/TH</p>
230
  </div>
231
  <div style="color:#f5f5f5;">
232
  <p style="margin:4px 0;">
233
+ <strong style="color: #ffffff;">Price (as of {pred_date.date()}):</strong>
234
  ${price:,.2f}
235
  <span style="
236
  background:{badge_color};
 
243
  {source}
244
  </span>
245
  </p>
246
+ <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Electricity rate:{elec_rate:.4f} USD/kWh</strong></p>
247
+ <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Cost bucket:{region_bucket}</strong></p>
248
+ <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Estimated daily elec cost:${daily_cost:,.2f}</strong></p>
249
+ # <p style="margin:4px 0;"><strong style="color: #ffffff;">Electricity rate:</strong> {elec_rate:.4f} USD/kWh</p>
250
+ # <p style="margin:4px 0;"><strong style="color: #ffffff;">Cost bucket:</strong> {region_bucket}</p>
251
+ # <p style="margin:4px 0;"><strong>Estimated daily elec cost:</strong> ${daily_cost:,.2f}</p>
252
  </div>
253
  </div>
254
  </div>