MVPilgrim commited on
Commit
2c02897
·
verified ·
1 Parent(s): 3005b35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -535,9 +535,13 @@ try:
535
  # {"role": "user", "content": userPrompt}
536
  #]
537
 
538
- fullPrompt = st.session_state.sysTA + userPrompt
 
 
 
 
539
 
540
- logger.debug(f"### userPrompt: {userPrompt}")
541
  logger.info("setPrompt exited.")
542
  return fullPrompt
543
 
 
535
  # {"role": "user", "content": userPrompt}
536
  #]
537
 
538
+ fullPrompt = "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\n"
539
+ fullPrompt += st.session_state.sysTA
540
+ fullPrompt += "<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n"
541
+ fullPrompt += userPrompt
542
+ fullPrompt += "<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n"
543
 
544
+ logger.debug(f"### userPrompt: {fullPrompt}")
545
  logger.info("setPrompt exited.")
546
  return fullPrompt
547