Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
import os
|
| 3 |
import requests
|
| 4 |
|
| 5 |
-
GROQ_API_KEY = "
|
| 6 |
|
| 7 |
GROQ_API_URL = "https://api.groq.com/openai/v1/chat/completions"
|
| 8 |
MODEL_NAME = "llama3-8b-8192"
|
|
|
|
| 2 |
import os
|
| 3 |
import requests
|
| 4 |
|
| 5 |
+
GROQ_API_KEY = os.environ.get("GROQ_API_KEY")
|
| 6 |
|
| 7 |
GROQ_API_URL = "https://api.groq.com/openai/v1/chat/completions"
|
| 8 |
MODEL_NAME = "llama3-8b-8192"
|