PatilShruti commited on
Commit
afae04c
·
verified ·
1 Parent(s): a385662

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
5
 
6
 
7
  # Get the Groq API key securely (use userdata in Colab)
8
- groq_api_key = userdata.get("GROQ_API_KEY") # Store using userdata.set("GROQ_API_KEY", "your_api_key")
9
 
10
  if not groq_api_key:
11
  raise ValueError("GROQ_API_KEY not found! Set it using userdata.set('GROQ_API_KEY', 'your_api_key')")
 
5
 
6
 
7
  # Get the Groq API key securely (use userdata in Colab)
8
+ groq_api_key = os.getenv("GROQ_API_KEY") # Store using userdata.set("GROQ_API_KEY", "your_api_key")
9
 
10
  if not groq_api_key:
11
  raise ValueError("GROQ_API_KEY not found! Set it using userdata.set('GROQ_API_KEY', 'your_api_key')")