Chan-Y commited on
Commit
31eecd9
1 Parent(s): 7b263b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -34,17 +34,15 @@ def summarize(file, n_words):
34
  text = f.read()
35
 
36
  template = '''
37
- You are a commentator. Your task is to write a report on an essay.
38
 
39
- # Essay:
40
  {TEXT}
 
41
 
42
- # Instructions:
43
- ## Summarize:
44
- In clear and concise language, summarize the key points and themes presented in the essay.
45
 
46
- ## Write a report
47
- Using the essay summary, create a summary in Markdown format.
48
  '''
49
 
50
  prompt = PromptTemplate(
 
34
  text = f.read()
35
 
36
  template = '''
37
+ Please carefully read the following document:
38
 
39
+ <document>
40
  {TEXT}
41
+ </document>
42
 
43
+ After reading through the document, identify the key points and main ideas covered in the text. Organize these key points into a concise bulleted list that summarizes the essential information from the document. The summary should have a maximum of 10 bullet points.
 
 
44
 
45
+ Your goal is to be comprehensive in capturing the core content of the document, while also being concise in how you express each summary point. Omit minor details and focus on the central themes and important facts.
 
46
  '''
47
 
48
  prompt = PromptTemplate(