codelion commited on
Commit
ad85ac1
·
verified ·
1 Parent(s): c105d6d

Update question.py

Browse files
Files changed (1) hide show
  1. question.py +1 -0
question.py CHANGED
@@ -68,6 +68,7 @@ def chat_with_doc(model, vector_store: SupabaseVectorStore, stats_db):
68
  model_kwargs = {"temperature" : st.session_state['temperature'],
69
  "min_p" : 0.1,
70
  "top_p" : 0.9,
 
71
  "max_new_tokens" : st.session_state['max_tokens'],
72
  "return_full_text" : False}
73
  hf = HuggingFaceEndpoint(
 
68
  model_kwargs = {"temperature" : st.session_state['temperature'],
69
  "min_p" : 0.1,
70
  "top_p" : 0.9,
71
+ "repetition_penalty"=1.5,
72
  "max_new_tokens" : st.session_state['max_tokens'],
73
  "return_full_text" : False}
74
  hf = HuggingFaceEndpoint(