Spaces:
Sleeping
Sleeping
Moezulhaq24
commited on
Commit
•
ac91624
1
Parent(s):
2a232c0
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,9 @@ from gtts import gTTS
|
|
5 |
import io
|
6 |
from groq import Groq
|
7 |
|
|
|
8 |
# Initialize the Groq client
|
9 |
-
client = Groq(api_key=
|
10 |
|
11 |
# Load the Whisper model
|
12 |
model = whisper.load_model("base") # You can choose other models like "small", "medium", "large"
|
|
|
5 |
import io
|
6 |
from groq import Groq
|
7 |
|
8 |
+
Groq_Api_Key = os.getenv("groq_api_key")
|
9 |
# Initialize the Groq client
|
10 |
+
client = Groq(api_key=Groq_Api_Key)
|
11 |
|
12 |
# Load the Whisper model
|
13 |
model = whisper.load_model("base") # You can choose other models like "small", "medium", "large"
|