amkj84 commited on
Commit
0fc1986
·
verified ·
1 Parent(s): 308936f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  from groq import Groq
5
 
6
  # Set up Groq API client (ensure GROQ_API_KEY is set in your environment or as a Hugging Face secret for deployment)
7
- client = Groq(api_key= apikey )
8
 
9
 
10
  # Function to interact with the LLM using Groq's API
 
4
  from groq import Groq
5
 
6
  # Set up Groq API client (ensure GROQ_API_KEY is set in your environment or as a Hugging Face secret for deployment)
7
+ client = Groq(api_key=os.getenv("apikey"))
8
 
9
 
10
  # Function to interact with the LLM using Groq's API