simonza commited on
Commit
f8671e8
·
1 Parent(s): af693b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ import pinecone_text
17
 
18
  # init connection to pinecone
19
  pinecone.init(
20
- api_key="0898750a-ee05-44f1-ac8a-98c5fef92f4a", # app.pinecone.io
21
  environment="asia-southeast1-gcp-free" # find next to api key
22
  )
23
 
@@ -132,7 +132,7 @@ img_files = {'x':[]}
132
  K = 5
133
 
134
  def fake_gan(text, alpha):
135
- detected_language = single_detection(text, api_key='d259a6dab3bb73b1d1c2bcc6fb62b9f4')
136
 
137
  if detected_language == 'iw':
138
  text_eng=GoogleTranslator(source='iw', target='en').translate(text)
 
17
 
18
  # init connection to pinecone
19
  pinecone.init(
20
+ api_key=Pinecone_Key, # app.pinecone.io
21
  environment="asia-southeast1-gcp-free" # find next to api key
22
  )
23
 
 
132
  K = 5
133
 
134
  def fake_gan(text, alpha):
135
+ detected_language = single_detection(text, api_key=Google_Translate_Key)
136
 
137
  if detected_language == 'iw':
138
  text_eng=GoogleTranslator(source='iw', target='en').translate(text)