Spaces:
Sleeping
Sleeping
Upload 6 files
Browse files
app.py
CHANGED
|
@@ -142,7 +142,7 @@ def normal_chat(message: str, history: Optional[List[Any]]):
|
|
| 142 |
if not NVIDIA_API_KEY:
|
| 143 |
return "Error: NVIDIA_API_KEY belum diset di Hugging Face Secrets."
|
| 144 |
|
| 145 |
-
messages = [{
|
| 146 |
|
| 147 |
# Gradio 5: history berupa list of dict {"role": ..., "content": ...}
|
| 148 |
# Gradio 4: history berupa list of tuple [(user, assistant), ...]
|
|
|
|
| 142 |
if not NVIDIA_API_KEY:
|
| 143 |
return "Error: NVIDIA_API_KEY belum diset di Hugging Face Secrets."
|
| 144 |
|
| 145 |
+
messages = [{"role": "system", "content": SYSTEM_PROMPT}]
|
| 146 |
|
| 147 |
# Gradio 5: history berupa list of dict {"role": ..., "content": ...}
|
| 148 |
# Gradio 4: history berupa list of tuple [(user, assistant), ...]
|