ryanrwatkins commited on
Commit
22adc5a
1 Parent(s): f11eb0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -282,7 +282,7 @@ if create_vectorstores:
282
  documents = chunks,
283
  vectorstore_name="Vit_All_HF_Embeddings"
284
  )
285
- print("vector_store_HF:",vector_store_HF._collection.count(),"chunks.", prompt_template)
286
 
287
  print("")
288
 
@@ -825,8 +825,8 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
825
  # return gr.update(value=''), [(history[i]['content'], history[i+1]['content']) for i in range(0, len(history)-1, 2)], state
826
 
827
  #prompt_template = prompt_templates[prompt_template]
828
- global prompt_template
829
- prompt_template = prompt_template
830
  print(prompt_template)
831
  print(prompt_templates[prompt_template])
832
 
 
282
  documents = chunks,
283
  vectorstore_name="Vit_All_HF_Embeddings"
284
  )
285
+ print("vector_store_HF:",vector_store_HF._collection.count(),"chunks.", prompt_template_name)
286
 
287
  print("")
288
 
 
825
  # return gr.update(value=''), [(history[i]['content'], history[i+1]['content']) for i in range(0, len(history)-1, 2)], state
826
 
827
  #prompt_template = prompt_templates[prompt_template]
828
+ global prompt_template_name
829
+ prompt_template_name = prompt_template
830
  print(prompt_template)
831
  print(prompt_templates[prompt_template])
832