Madiharehan commited on
Commit
3bf7e40
·
verified ·
1 Parent(s): 669e9dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -33,10 +33,10 @@ from groq import Groq
33
  # Load Whisper model
34
  model = whisper.load_model("base")
35
 
36
- # Fetch the API key from the environment variable
37
- Groq_api_key = os.getenv("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()