Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,17 +34,15 @@ def summarize(file, n_words):
|
|
34 |
text = f.read()
|
35 |
|
36 |
template = '''
|
37 |
-
|
38 |
|
39 |
-
|
40 |
{TEXT}
|
|
|
41 |
|
42 |
-
|
43 |
-
## Summarize:
|
44 |
-
In clear and concise language, summarize the key points and themes presented in the essay.
|
45 |
|
46 |
-
|
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(
|