Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,9 +4,8 @@
|
|
| 4 |
import os
|
| 5 |
import requests
|
| 6 |
import gradio as gr
|
| 7 |
-
from google.colab import userdata # Secure storage for API keys in Colab
|
| 8 |
|
| 9 |
-
groq_api_key =
|
| 10 |
|
| 11 |
# Define the URL for the Groq API endpoint
|
| 12 |
url = "https://api.groq.com/openai/v1/chat/completions"
|
|
|
|
| 4 |
import os
|
| 5 |
import requests
|
| 6 |
import gradio as gr
|
|
|
|
| 7 |
|
| 8 |
+
groq_api_key = os.getenv("GROQ_API_KEY")
|
| 9 |
|
| 10 |
# Define the URL for the Groq API endpoint
|
| 11 |
url = "https://api.groq.com/openai/v1/chat/completions"
|