import eel
import pyowm
owm = pyowm.OWM("738424bb38ba050b6ab90b24ff52d456")
@eel.expose
def get_weather(place):
mgr = owm.weather_manager()
observation = mgr.weather_at_place(place)
w = observation.weather
temp = w.temperature('celsius')['temp']
return "It is now " + str(temp) + "°" + " in " + place
eel.init("web")
eel.start("main.html", size=(700, 700))