gpcervellera commited on
Commit
42fde7b
·
verified ·
1 Parent(s): 8cecce4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -12,6 +12,7 @@ from flask import jsonify
12
 
13
  import requests
14
 
 
15
  code = requests.get(os.getenv("url")+'/beta_model_clogging.pkl').text
16
  with open("beta_model_clogging.pkl", "w") as f:
17
  f.write(code)
@@ -20,7 +21,7 @@ code = requests.get(os.getenv("url")+'/algoritm.py').text
20
  with open("algoritm.py", "w") as f:
21
  f.write(code)
22
  import algoritm
23
-
24
 
25
 
26
 
@@ -31,7 +32,7 @@ app.config['CORS_HEADERS'] = 'Content-Type'
31
 
32
  @app.route('/')
33
  def hello_world():
34
- return 'Hello World!'
35
 
36
 
37
  @app.route('/api/telemetry/raw', methods=['POST'])
 
12
 
13
  import requests
14
 
15
+ print('Inizio scaricamento files')
16
  code = requests.get(os.getenv("url")+'/beta_model_clogging.pkl').text
17
  with open("beta_model_clogging.pkl", "w") as f:
18
  f.write(code)
 
21
  with open("algoritm.py", "w") as f:
22
  f.write(code)
23
  import algoritm
24
+ print('Fine scaricamento files')
25
 
26
 
27
 
 
32
 
33
  @app.route('/')
34
  def hello_world():
35
+ return 'Hello I'm ready!'
36
 
37
 
38
  @app.route('/api/telemetry/raw', methods=['POST'])