Spaces:
Running
Running
phyloforfun
commited on
Commit
·
17e4e25
1
Parent(s):
62067f5
update ui
Browse files
vouchervision/utils_VoucherVision.py
CHANGED
@@ -414,7 +414,7 @@ class VoucherVision():
|
|
414 |
# Access secrets directly from the environment
|
415 |
openai_api_key = os.getenv('OPENAI_API_KEY')
|
416 |
google_application_credentials = os.getenv('GOOGLE_APPLICATION_CREDENTIALS')
|
417 |
-
palm_api_key = os.getenv('
|
418 |
|
419 |
self.has_key_openai = openai_api_key is not None
|
420 |
self.has_key_google_OCR = google_application_credentials is not None
|
@@ -437,7 +437,6 @@ class VoucherVision():
|
|
437 |
self.configure_azure_llm()
|
438 |
|
439 |
if self.has_key_palm2:
|
440 |
-
os.environ['PALM'] = palm_api_key
|
441 |
palm.configure(api_key=palm_api_key)
|
442 |
|
443 |
if self.has_key_openai:
|
|
|
414 |
# Access secrets directly from the environment
|
415 |
openai_api_key = os.getenv('OPENAI_API_KEY')
|
416 |
google_application_credentials = os.getenv('GOOGLE_APPLICATION_CREDENTIALS')
|
417 |
+
palm_api_key = os.getenv('PALM_API_KEY')
|
418 |
|
419 |
self.has_key_openai = openai_api_key is not None
|
420 |
self.has_key_google_OCR = google_application_credentials is not None
|
|
|
437 |
self.configure_azure_llm()
|
438 |
|
439 |
if self.has_key_palm2:
|
|
|
440 |
palm.configure(api_key=palm_api_key)
|
441 |
|
442 |
if self.has_key_openai:
|