Spaces:
Sleeping
Sleeping
Update tutor.py
Browse files
tutor.py
CHANGED
|
@@ -4,7 +4,7 @@ AI Tutor chat powered by Groq. Maintains conversation history per session.
|
|
| 4 |
"""
|
| 5 |
from groq import Groq
|
| 6 |
|
| 7 |
-
GROQ_API_KEY = "
|
| 8 |
|
| 9 |
SYSTEM_PROMPT = """You are LearnCraft Tutor — a friendly, encouraging, and highly knowledgeable AI tutor.
|
| 10 |
Your role is to help students understand topics deeply, answer their questions clearly, and guide them
|
|
|
|
| 4 |
"""
|
| 5 |
from groq import Groq
|
| 6 |
|
| 7 |
+
GROQ_API_KEY = os.environ.get("GROQ_API_KEY")
|
| 8 |
|
| 9 |
SYSTEM_PROMPT = """You are LearnCraft Tutor — a friendly, encouraging, and highly knowledgeable AI tutor.
|
| 10 |
Your role is to help students understand topics deeply, answer their questions clearly, and guide them
|