ryanrwatkins commited on
Commit
df44003
1 Parent(s): ba47ef6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -473,6 +473,7 @@ def retrieval_blocks(
473
  persist_directory = current_dir + "/" + vectorstore_name,
474
  embedding_function=embeddings
475
  )
 
476
 
477
  # 6. base retriever: Vector store-backed retriever
478
  base_retriever = Vectorstore_backed_retriever(
@@ -827,7 +828,8 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
827
  # return gr.update(value=''), [(history[i]['content'], history[i+1]['content']) for i in range(0, len(history)-1, 2)], state
828
 
829
  #prompt_template = prompt_templates[prompt_template]
830
- prompt_template_name = [prompt_template]
 
831
  print(prompt_template)
832
  print(prompt_templates[prompt_template])
833
 
 
473
  persist_directory = current_dir + "/" + vectorstore_name,
474
  embedding_function=embeddings
475
  )
476
+ print(prompt_template_name)
477
 
478
  # 6. base retriever: Vector store-backed retriever
479
  base_retriever = Vectorstore_backed_retriever(
 
828
  # return gr.update(value=''), [(history[i]['content'], history[i+1]['content']) for i in range(0, len(history)-1, 2)], state
829
 
830
  #prompt_template = prompt_templates[prompt_template]
831
+ global prompt_template_name
832
+ prompt_template_name = prompt_template
833
  print(prompt_template)
834
  print(prompt_templates[prompt_template])
835