myreport12 commited on
Commit
ab48b5e
·
verified ·
1 Parent(s): 76b877b

Upload 6 files

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = [{\"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), ...]
 
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), ...]