ryanrwatkins commited on
Commit
b0189a2
1 Parent(s): 62842f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -78,6 +78,11 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
78
 
79
  prompt_template = prompt_templates[prompt_template]
80
 
 
 
 
 
 
81
  system_prompt = []
82
  if prompt_template:
83
  system_prompt = [{ "role": "system", "content": prompt_template }]
 
78
 
79
  prompt_template = prompt_templates[prompt_template]
80
 
81
+
82
+ with open('prompt_history.txt', 'w') as f:
83
+ f.write(str(prompt + "\n"))
84
+
85
+
86
  system_prompt = []
87
  if prompt_template:
88
  system_prompt = [{ "role": "system", "content": prompt_template }]