File size: 1,115 Bytes
58f870a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
da413a5
58f870a
 
 
 
 
 
 
 
5e57fa0
23e1f87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58f870a
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!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" />





      
	</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>