Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
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')")
|