Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,6 @@ model = whisper.load_model("base")
|
|
11 |
GROQ_API_KEY = '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'
|
12 |
client = Groq(api_key=GROQ_API_KEY)
|
13 |
|
14 |
-
# Set up Groq API client (ensure GROQ_API_KEY is set in your environment)
|
15 |
-
client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
|
16 |
-
|
17 |
# Function to get the LLM response from Groq
|
18 |
def get_llm_response(user_input):
|
19 |
chat_completion = client.chat.completions.create(
|
|
|
11 |
GROQ_API_KEY = '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'
|
12 |
client = Groq(api_key=GROQ_API_KEY)
|
13 |
|
|
|
|
|
|
|
14 |
# Function to get the LLM response from Groq
|
15 |
def get_llm_response(user_input):
|
16 |
chat_completion = client.chat.completions.create(
|