Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ import pinecone_text
|
|
17 |
|
18 |
# init connection to pinecone
|
19 |
pinecone.init(
|
20 |
-
api_key=
|
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=
|
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)
|