Josedcape commited on
Commit
6cc67d2
·
verified ·
1 Parent(s): 96a810e

Update agent_functions.py

Browse files
Files changed (1) hide show
  1. agent_functions.py +5 -0
agent_functions.py CHANGED
@@ -8,6 +8,11 @@ import tempfile
8
  from google.cloud import texttospeech
9
  import time
10
 
 
 
 
 
 
11
  # Instancia el cliente de Text-to-Speech
12
  client = texttospeech.TextToSpeechClient()
13
 
 
8
  from google.cloud import texttospeech
9
  import time
10
 
11
+ # Cargar la clave API desde el archivo .env
12
+ load_dotenv()
13
+ os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "botidinamix-g.json"
14
+ openai.api_key = os.getenv("OPENAI_API_KEY")
15
+
16
  # Instancia el cliente de Text-to-Speech
17
  client = texttospeech.TextToSpeechClient()
18