flask_inference_api3 / zapro.html
DmitrMakeev's picture
Update zapro.html
5e8ef40 verified
raw
history blame
1.18 kB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>My static Space</title>
<link rel="stylesheet" href="https://huggingface.co/spaces/vk-ai-system/flask_inference_api/resolve/main/style.css" />
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<div class="card">
<h1>Welcome to your static Space - Zapro!</h1>
<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
<p>
Also don't forget to check the
<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
</p>
</div>
<p>PH значение: <span id="ph_value">{{ ph_value }}</span></p>
<p>EC значение: <span id="ec_value">{{ ec_value }}</span></p>
<script>
$(document).ready(function() {
setInterval(function() {
$.ajax({
url: "/zapro",
method: "GET",
success: function(response) {
$("#ph_value").text(response.ph_value);
$("#ec_value").text(response.ec_value);
}
});
}, 10000);
});
</script>
</body>
</html>