Qudrat0708 commited on
Commit
b8e0a9f
·
verified ·
1 Parent(s): 3169cc7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -8,12 +8,13 @@ from gtts import gTTS
8
  import gradio as gr
9
  from groq import Groq
10
 
11
- os.environ['GROQ_API_KEY'] = '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'
 
12
  # Load Whisper model for transcription
13
  model = whisper.load_model("base")
14
 
15
- # Set up Groq API client (ensure GROQ_API_KEY is set in your environment)
16
- client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
17
 
18
  # Function to get the LLM response from Groq
19
  def get_llm_response(user_input):
 
8
  import gradio as gr
9
  from groq import Groq
10
 
11
+ GROQ_API_KEY = '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'
12
+
13
  # Load Whisper model for transcription
14
  model = whisper.load_model("base")
15
 
16
+ # Set up Groq API client
17
+ client = Groq(api_key=GROQ_API_KEY)
18
 
19
  # Function to get the LLM response from Groq
20
  def get_llm_response(user_input):