Update app.py
Browse files
app.py
CHANGED
@@ -30,9 +30,11 @@ def find_attached_file(filename, attached_files):
|
|
30 |
async def echo(message, history, state, persona, use_generated_summaries):
|
31 |
attached_file = None
|
32 |
system_instruction = Template(prompt_tmpl['summarization']['system_prompt']).safe_substitute(persona=persona)
|
33 |
-
system_instruction_cutoff =
|
34 |
use_generated_summaries = True if use_generated_summaries == "Yes" else False
|
35 |
|
|
|
|
|
36 |
if message['files']:
|
37 |
path_local = message['files'][0]
|
38 |
filename = os.path.basename(path_local)
|
|
|
30 |
async def echo(message, history, state, persona, use_generated_summaries):
|
31 |
attached_file = None
|
32 |
system_instruction = Template(prompt_tmpl['summarization']['system_prompt']).safe_substitute(persona=persona)
|
33 |
+
system_instruction_cutoff = prompt_tmpl['summarization']['system_prompt_cutoff']
|
34 |
use_generated_summaries = True if use_generated_summaries == "Yes" else False
|
35 |
|
36 |
+
print(system_instruction_cutoff)
|
37 |
+
|
38 |
if message['files']:
|
39 |
path_local = message['files'][0]
|
40 |
filename = os.path.basename(path_local)
|