Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhasdutta authored Nov 20, 2024
1 parent 7be768f commit c187587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c187587

Please sign in to comment.