Samarth991 commited on
Commit
d8cec98
1 Parent(s): 882ceed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,7 +49,7 @@ def loading_file():
49
 
50
  def summarize_data(docs,llm_model,chain_type='refine'):
51
  prompt_template = """
52
- Write a concise summary of the following pointwise avoid repetion:
53
  {text}
54
  CONCISE SUMMARY:
55
  """
@@ -64,7 +64,7 @@ def summarize_data(docs,llm_model,chain_type='refine'):
64
 
65
  chain = load_summarize_chain(llm=llm_model,
66
  chain_type=chain_type,
67
- # question_prompt=prompt,
68
  # refine_prompt=,
69
  return_intermediate_steps=False,
70
  input_key="input_documents",
 
49
 
50
  def summarize_data(docs,llm_model,chain_type='refine'):
51
  prompt_template = """
52
+ Write a concise summary of the following text pointwise without repeating sentences:
53
  {text}
54
  CONCISE SUMMARY:
55
  """
 
64
 
65
  chain = load_summarize_chain(llm=llm_model,
66
  chain_type=chain_type,
67
+ question_prompt=prompt,
68
  # refine_prompt=,
69
  return_intermediate_steps=False,
70
  input_key="input_documents",