Hello,
I am using streamlit âmetricâ module in my web app but it results in a attribute error.
like this one:
AttributeError: module âstreamlitâ has no attribute âmetricâ
I am using :
streamlit version : 0.62.0
windows : 32 bit os
python version : 3.7.1
My code snip:
def weather_forcast():
obs = mgr.weather_at_place(location)
weather = obs.weather
temp = weather.temperature(unit=units)['temp']
st.metric(label='Temperature', value=temp)
print(f"Temperature: {round(temp)}{sign}C")
cloud = weather.clouds
print(f"Clouds Coverage: {cloud}%")
wind = weather.wind()['speed']
print(f"Wind Speed: {wind}m/s")
Any help would be appreciated.