Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,10 @@ from groq import Groq
|
|
7 |
|
8 |
# Load Whisper model for transcription
|
9 |
model = whisper.load_model("base")
|
|
|
|
|
|
|
|
|
10 |
|
11 |
|
12 |
client = Groq(api_key=Groq_api_key)
|
|
|
7 |
|
8 |
# Load Whisper model for transcription
|
9 |
model = whisper.load_model("base")
|
10 |
+
# Fetch API key from environment variable
|
11 |
+
Groq_api_key = os.getenv("GROQ_API_KEY")
|
12 |
+
if not Groq_api_key:
|
13 |
+
raise ValueError("GROQ_API_KEY environment variable is not set.")
|
14 |
|
15 |
|
16 |
client = Groq(api_key=Groq_api_key)
|