Spaces:
Running
Running
Update script.py
Browse files
script.py
CHANGED
@@ -3,12 +3,12 @@ import google.generativeai as genai
|
|
3 |
import os
|
4 |
|
5 |
def audioTranscribe(audio_file,translation):
|
6 |
-
gemini_api_key = os.getenv(GEMINI_API_KEY)
|
7 |
genai.configure(api_key=gemini_api_key)
|
8 |
|
9 |
model = genai.GenerativeModel("gemini-1.5-pro-002")
|
10 |
|
11 |
-
aai_api_key = os.getenv(ASSEMBLYAI_API_KEY)
|
12 |
aai.settings.api_key = aai_api_key
|
13 |
|
14 |
transcriber = aai.Transcriber()
|
|
|
3 |
import os
|
4 |
|
5 |
def audioTranscribe(audio_file,translation):
|
6 |
+
gemini_api_key = os.getenv("GEMINI_API_KEY")
|
7 |
genai.configure(api_key=gemini_api_key)
|
8 |
|
9 |
model = genai.GenerativeModel("gemini-1.5-pro-002")
|
10 |
|
11 |
+
aai_api_key = os.getenv("ASSEMBLYAI_API_KEY")
|
12 |
aai.settings.api_key = aai_api_key
|
13 |
|
14 |
transcriber = aai.Transcriber()
|