sashavor commited on
Commit
2a081f9
1 Parent(s): 118e15d

adding float conversion

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -133,7 +133,7 @@ st.markdown('##### These are the emissions produced by generating the electricit
133
  with st.expander("Calculate the datacenter emissions of your model"):
134
  st.info('A proxy often used to reflect idle emissions is PUE (Power Usage Effectiveness), which represents '
135
  ' the ratio of energy used for computing overheads like cooling, which varies depending on the data center.')
136
- pue = instances['PUE'][(instances['provider'] == provider.lower()) & (instances['region'] == region)].tolist()[0]
137
  source = instances['PUE source'][(instances['provider'] == provider.lower()) & (instances['region'] == region)].tolist()[0]
138
  if math.isnan(pue) == True:
139
  if provider != 'Local/Private Infastructure':
 
133
  with st.expander("Calculate the datacenter emissions of your model"):
134
  st.info('A proxy often used to reflect idle emissions is PUE (Power Usage Effectiveness), which represents '
135
  ' the ratio of energy used for computing overheads like cooling, which varies depending on the data center.')
136
+ pue = float(instances['PUE'][(instances['provider'] == provider.lower()) & (instances['region'] == region)].tolist()[0])
137
  source = instances['PUE source'][(instances['provider'] == provider.lower()) & (instances['region'] == region)].tolist()[0]
138
  if math.isnan(pue) == True:
139
  if provider != 'Local/Private Infastructure':