gpcervellera commited on
Commit
05fa0b8
·
verified ·
1 Parent(s): 1fd44b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -31
app.py CHANGED
@@ -15,42 +15,11 @@ cors = CORS(app)
15
  #CORS(app, resources={r"/api/*": {"origins": "https://agritech.unisi.it/"}})
16
  app.config['CORS_HEADERS'] = 'Content-Type'
17
 
18
-
19
-
20
- res_loaded = sm.load("beta_model_clogging.pkl")
21
- #Prendiamo tutti i limiti superiori, tranne l’ultimo che va a +∞.
22
- bins = [
23
- 6.827491567, 7.207134976, 7.507514601, 7.85202832, 8.135308095,
24
- 8.689867231, 9.286871296, 9.617912395, 10.09183855, 10.73296965,
25
- 11.10692936, 11.69554997, 12.28992645, 12.73162955, 13.58962501,
26
- 14.05211378, 14.82733437, 15.28453334, 15.97759006, 16.82037951,
27
- 17.64491222, 18.42719281, 19.35467075, 20.11238201, 21.11239952,
28
- 21.8749792, 23.13365381, 24.06277248, 24.69985079, 26.06401012,
29
- 26.99098886, 28.06155461, 29.31860042, 30.62386734, 31.4413642,
30
- 32.92566161, 33.97571072, 35.31251088, 36.15053542, 37.57770049,
31
- 39.13652821, 40.29113449, 41.76522545, 42.82082043, 44.00697262,
32
- 45.92880868, 46.82432879, 48.63647026, 49.74936819, 51.22777855,
33
- 52.49036854, 53.51554916, 55.2477514, 56.28299801, 57.51382218,
34
- 59.16053699, 60.15795894, 61.6664039, 62.90702101, 63.87127815,
35
- 64.98319564, 66.22208356, 66.61521227, 68.15750081, 69.44821662,
36
- 70.66864959, 71.92308181, 72.69082311, 73.92476305, 74.87935242,
37
- 75.77031936, 76.94368679, 78.04134047, 79.02976362, 79.56238123,
38
- 80.1200946, 81.16954675, 82.1616298, 82.70600553, 83.32428364,
39
- 84.40737139, 85.17567459, 85.61323671, 86.27587966, 87.00108867,
40
- 87.48195456, 87.87995156, 88.53346862, 88.95068965, 89.6043336,
41
- 90.05141954, 90.51239833, 90.99974806, 91.33113872, 91.79738573,
42
- 92.19314603, 92.59169911, 92.84177084, 93.23587096, np.inf
43
- ]
44
- values = [0] + list(range(2, 101))
45
-
46
-
47
-
48
  @app.route('/')
49
  def hello_world():
50
  return 'Hello World!'
51
 
52
 
53
-
54
  @app.route('/api/telemetry/raw', methods=['POST'])
55
  @cross_origin()
56
  def telemetry():
 
15
  #CORS(app, resources={r"/api/*": {"origins": "https://agritech.unisi.it/"}})
16
  app.config['CORS_HEADERS'] = 'Content-Type'
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  @app.route('/')
19
  def hello_world():
20
  return 'Hello World!'
21
 
22
 
 
23
  @app.route('/api/telemetry/raw', methods=['POST'])
24
  @cross_origin()
25
  def telemetry():