leavoigt commited on
Commit
a6dabb1
·
1 Parent(s): 5cd41bc

change import

Browse files
utils/main_processor.py CHANGED
@@ -1,6 +1,6 @@
1
  import json
2
  import os
3
- import utils.api_client
4
 
5
  # Import secrets
6
  whisp_api_key = os.environ.get("WHISP_API_KEY")
@@ -21,8 +21,9 @@ def get_statistics(file):
21
  return {"error": str(e)}
22
 
23
  # Do the API call
24
- whisp_response = utils.api_client.whisp_request(geojson_file, api_key=whisp_api_key)
25
 
 
26
  return whisp_response
27
 
28
 
 
1
  import json
2
  import os
3
+ from utils.whisp_api_client import whisp_request
4
 
5
  # Import secrets
6
  whisp_api_key = os.environ.get("WHISP_API_KEY")
 
21
  return {"error": str(e)}
22
 
23
  # Do the API call
24
+ whisp_response = whisp_request(geojson_file, api_key=whisp_api_key)
25
 
26
+ # Do preprocessing
27
  return whisp_response
28
 
29
 
utils/{api_client.py → whisp_api_client.py} RENAMED
File without changes