# imports
import eel
from pyowm import OWM
# api key
owm = OWM ('b0b4ced2f82c73fcd4606676f6d1237e')
@eel.expose
def get_weather(place):
#owm
observation = weather_at_place(place)
Observation = weather = observation.get_weather()
#temp
Temp = weather.get_temperature('celsius')['temp']
#status
Status = weather.get_detailed_status()
return "В городе "+place+'температура '+str(Temp) + Status
#eel
eel.init("web")
eel.start("main.html", size=(500 , 500))
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Погода</title>
<script src="eel.js"></script>
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css">
<link rel="icon" type ="image/png" href="/weather.png">
</head>
<body>
<div class="header">
<img src="/weather.png" height="60px">
<h2>find weather</h2>
</div>
<div class="form">
<form>
<input id='location' class="enter" type="text" placeholder="Введите название города" value="москва">
</form>
</div>
<div class="butt">
<button id='show'>Найти</button>
</div>
<div id="info"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript">
async function display_weather(){
let place = document.getElementById('location').value;
let res = await eel.get_weather(place)();
document.getElementById('info').innerHTML = res;
}
jQuery('#show').on('click',function(){
//
display_weather();
});
</script>
</body>
</html>
Ошибка observation = weather_at_place(place)
NameError: name 'weather_at_place' is not defined
НЕ ПОНИМАЮ ПОЧЕМУ