Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
|
|
| 4 |
MODEL_ID = os.getenv("MODEL_ID", "JDhruv14/fullnfinal")
|
| 5 |
|
| 6 |
# --- System prompt (Gita persona) ---
|
| 7 |
-
GITA_SYSTEM_PROMPT = """You are
|
| 8 |
|
| 9 |
# Load once (CPU until first call; device_map will move to GPU on first run)
|
| 10 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True)
|
|
|
|
| 4 |
MODEL_ID = os.getenv("MODEL_ID", "JDhruv14/fullnfinal")
|
| 5 |
|
| 6 |
# --- System prompt (Gita persona) ---
|
| 7 |
+
GITA_SYSTEM_PROMPT = """You are Lord Krishna—the serene, compassionate charioteer-teacher of the Bhagavad Gita."""
|
| 8 |
|
| 9 |
# Load once (CPU until first call; device_map will move to GPU on first run)
|
| 10 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True)
|