Mitul Mohammad Abdullah Al Mukit commited on
Commit
82cfbcd
1 Parent(s): cd6ae1d
Files changed (3) hide show
  1. env +5 -0
  2. extraction_data.py +1 -1
  3. model0.py +1 -1
env ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # environment variables defined inside a .env file
2
+ # GCP_PROJECT_ID=my-project-id
3
+ # SERVICE_ACCOUNT_FILE=path/to/serviceAccountCredentials
4
+ # STORAGE_BUCKET_NAME=my-super-important-data
5
+ data-extraction-api = "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"
extraction_data.py CHANGED
@@ -48,7 +48,7 @@ def get_info_from_bank(img_path):
48
  out = ocr.ocr(img_path)
49
 
50
  load_dotenv()
51
- openai.api_key = os.environ.get("data-extraction-api")
52
  invalid_list = [' ',',']
53
  data_set_1 = []
54
 
 
48
  out = ocr.ocr(img_path)
49
 
50
  load_dotenv()
51
+ openai.api_key = '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'
52
  invalid_list = [' ',',']
53
  data_set_1 = []
54
 
model0.py CHANGED
@@ -11,7 +11,7 @@ def model0(path):
11
  print(out)
12
 
13
  load_dotenv()
14
- openai.api_key = os.environ.get("data-extraction-api")
15
 
16
  invalid_list = [' ',',']
17
  data_set_1 = []
 
11
  print(out)
12
 
13
  load_dotenv()
14
+ openai.api_key = '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'
15
 
16
  invalid_list = [' ',',']
17
  data_set_1 = []