Spaces:
Runtime error
Runtime error
Madiharehan
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -33,10 +33,10 @@ from groq import Groq
|
|
33 |
# Load Whisper model
|
34 |
model = whisper.load_model("base")
|
35 |
|
36 |
-
#
|
37 |
-
Groq_api_key =
|
38 |
|
39 |
-
# Check if the API key is set
|
40 |
if Groq_api_key is None:
|
41 |
raise ValueError("API key for Groq not found. Please set the 'GROQ_API_KEY' environment variable.")
|
42 |
|
@@ -98,4 +98,3 @@ iface = gr.Interface(
|
|
98 |
|
99 |
# Launch the interface
|
100 |
iface.launch()
|
101 |
-
|
|
|
33 |
# Load Whisper model
|
34 |
model = whisper.load_model("base")
|
35 |
|
36 |
+
# Hard-code the Groq API key
|
37 |
+
Groq_api_key = "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"
|
38 |
|
39 |
+
# Check if the API key is set (even though it's hard-coded, we can keep this check)
|
40 |
if Groq_api_key is None:
|
41 |
raise ValueError("API key for Groq not found. Please set the 'GROQ_API_KEY' environment variable.")
|
42 |
|
|
|
98 |
|
99 |
# Launch the interface
|
100 |
iface.launch()
|
|