arcan3 commited on
Commit
d433edf
·
1 Parent(s): 38eb9b7

added secrets

Browse files
Files changed (2) hide show
  1. app.py +12 -9
  2. aux_files/aux_file.exii +0 -0
app.py CHANGED
@@ -23,11 +23,11 @@ def create_folder(_path):
23
  except:
24
  return _path
25
 
26
- data_folder = 'data_folder'
27
- scraped_folder = 'scrapped_files'
28
  category_folder = 'categories'
29
- excel_file = 'Scorecard_Final.xlsx'
30
- log_folder = 'log_files'
31
 
32
  create_folder(data_folder)
33
  scraped_folder_path = create_folder(f'{data_folder}/{scraped_folder}')
@@ -221,13 +221,16 @@ def log_to_file(f, general_question, question_dictionary, useless_urls, complete
221
  f.write("---------------------------------------------------------------------------------------------------------------------------------\n")
222
  print("----------------------------------------------------------------------\n")
223
 
224
- constants = pickle.load(open('aux_files/aux_file.exii', 'rb'))
225
 
226
- openapikey = constants['openapi_key']
227
- scarpingbeekey = constants['scrapingbee_key']
228
 
229
- os.environ['OPEN_API_KEY'] = openapikey
230
- openai.api_key = openapikey
 
 
 
231
 
232
  def send_request(google_prompt):
233
  response = requests.get(
 
23
  except:
24
  return _path
25
 
26
+ data_folder = 'data_folder'
27
+ scraped_folder = 'scrapped_files'
28
  category_folder = 'categories'
29
+ excel_file = 'Scorecard_Final.xlsx'
30
+ log_folder = 'log_files'
31
 
32
  create_folder(data_folder)
33
  scraped_folder_path = create_folder(f'{data_folder}/{scraped_folder}')
 
221
  f.write("---------------------------------------------------------------------------------------------------------------------------------\n")
222
  print("----------------------------------------------------------------------\n")
223
 
224
+ # constants = pickle.load(open('aux_files/aux_file.exii', 'rb'))
225
 
226
+ scarpingbeekey = os.environ['getkey']
227
+ openai.api_key = os.environ['chatkey']
228
 
229
+ # openapikey = constants['openapi_key']
230
+ # scarpingbeekey = constants['scrapingbee_key']
231
+
232
+ # os.environ['OPEN_API_KEY'] = openapikey
233
+ # openai.api_key = openapikey
234
 
235
  def send_request(google_prompt):
236
  response = requests.get(
aux_files/aux_file.exii DELETED
Binary file (185 Bytes)