Spaces:
Runtime error
Runtime error
update pdf generation prompt
Browse files
a.py
CHANGED
|
@@ -26,9 +26,17 @@ def generate_structured_summary(text):
|
|
| 26 |
api_key="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",
|
| 27 |
)
|
| 28 |
prompt = (
|
| 29 |
-
"Generate a
|
| 30 |
-
"
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
)
|
| 33 |
|
| 34 |
completion = client.chat.completions.create(
|
|
|
|
| 26 |
api_key="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",
|
| 27 |
)
|
| 28 |
prompt = (
|
| 29 |
+
"Generate a professional structured report from the following text. "
|
| 30 |
+
"The output should follow this format:\n\n"
|
| 31 |
+
"**Report Title**\n"
|
| 32 |
+
"**1. Introduction**\n"
|
| 33 |
+
"**2. Key Findings** (Use bullet points)\n"
|
| 34 |
+
"**3. Analysis** (Include structured paragraphs)\n"
|
| 35 |
+
"**4. Recommendations** (Bullet points of suggestions)\n"
|
| 36 |
+
"**5. Appendix (if applicable)**\n\n"
|
| 37 |
+
"Do NOT include additional instructions on formatting.\n"
|
| 38 |
+
"Dont add conclusions or any ending text!"
|
| 39 |
+
f"\n\n{text}"
|
| 40 |
)
|
| 41 |
|
| 42 |
completion = client.chat.completions.create(
|