From c18758748b707fe7734ac790e85d6c98ad948f11 Mon Sep 17 00:00:00 2001 From: Vibhas Dutta <113254581+vibhasdutta@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:01:37 +0530 Subject: [PATCH] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index b9e560f..b547b0d 100644 --- a/app.py +++ b/app.py @@ -179,7 +179,7 @@ def load_config(file_path: str) -> Dict[str, Any]: def setup_gemini(config: Dict[str, Any]): try: - genai.configure(api_key=config['API']['API_KEY']) + genai.configure(api_key=st.secrets[API_KEY]) safety_settings = { HarmCategory.HARM_CATEGORY_HATE_SPEECH: HarmBlockThreshold.BLOCK_ONLY_HIGH,