Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -535,9 +535,13 @@ try:
|
|
535 |
# {"role": "user", "content": userPrompt}
|
536 |
#]
|
537 |
|
538 |
-
fullPrompt =
|
|
|
|
|
|
|
|
|
539 |
|
540 |
-
logger.debug(f"### 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 |
|