Spaces:
Running
Running
Ammar-khan
commited on
Commit
•
a64b6c9
1
Parent(s):
8c8daca
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ from gtts import gTTS
|
|
6 |
import tempfile
|
7 |
|
8 |
# Set up Groq API key
|
9 |
-
os.
|
10 |
-
groq_client = Groq(api_key=
|
11 |
|
12 |
# Load Whisper model
|
13 |
whisper_model = whisper.load_model("base")
|
|
|
6 |
import tempfile
|
7 |
|
8 |
# Set up Groq API key
|
9 |
+
groq_api_key = os.getenv('GROQ_API_KEY')
|
10 |
+
groq_client = Groq(api_key=groq_api_key)
|
11 |
|
12 |
# Load Whisper model
|
13 |
whisper_model = whisper.load_model("base")
|