Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import os
|
|
| 3 |
from groq import Groq
|
| 4 |
|
| 5 |
# === Load API Key from environment ===
|
| 6 |
-
GROQ_API_KEY = os.getenv("
|
| 7 |
if not GROQ_API_KEY:
|
| 8 |
raise ValueError("Missing GROQ_API_KEY. Please set it in the Hugging Face Space 'Secrets'.")
|
| 9 |
|
|
@@ -37,3 +37,4 @@ chatbot = gr.ChatInterface(fn=chat_with_groq, title="Groq Chatbot")
|
|
| 37 |
if __name__ == "__main__":
|
| 38 |
chatbot.launch()
|
| 39 |
|
|
|
|
|
|
| 3 |
from groq import Groq
|
| 4 |
|
| 5 |
# === Load API Key from environment ===
|
| 6 |
+
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
|
| 7 |
if not GROQ_API_KEY:
|
| 8 |
raise ValueError("Missing GROQ_API_KEY. Please set it in the Hugging Face Space 'Secrets'.")
|
| 9 |
|
|
|
|
| 37 |
if __name__ == "__main__":
|
| 38 |
chatbot.launch()
|
| 39 |
|
| 40 |
+
|