sgongora27 commited on
Commit
8a9c486
·
1 Parent(s): 911ab88
Files changed (1) hide show
  1. models.py +1 -1
models.py CHANGED
@@ -28,7 +28,7 @@ class GeminiModel():
28
  "threshold": "BLOCK_NONE",
29
  },
30
  ]
31
- genai.configure(api_key=get_api_key(api_key_file))
32
  self.model = genai.GenerativeModel(model_name)
33
 
34
  def prompt_model(self,prompt: str) -> str:
 
28
  "threshold": "BLOCK_NONE",
29
  },
30
  ]
31
+ genai.configure(api_key=os.getenv(api_key_file))
32
  self.model = genai.GenerativeModel(model_name)
33
 
34
  def prompt_model(self,prompt: str) -> str: