im commited on
Commit ·
0ade4ed
1
Parent(s): 9e0f2ab
fix error related to JSON format of AI answer
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ def get_content_summary(content, model_name, api_key):
|
|
| 87 |
]}
|
| 88 |
```
|
| 89 |
"""
|
| 90 |
-
prompt_template = """You are an advanced copywriter who can discuss and summarise articles. Translate the text to English if required. You instructions: 1) Write a concise summary of the whole text; 2) Break down the text into logical blocks containing unique information, extract important information for each block and write a summary using this information; 3) Generate relevant critical questions. Here is the text:
|
| 91 |
``` {text} ```
|
| 92 |
Format instructions: ``` {format_instructions} ```
|
| 93 |
Answer:"""
|
|
|
|
| 87 |
]}
|
| 88 |
```
|
| 89 |
"""
|
| 90 |
+
prompt_template = """You are an advanced copywriter who can discuss and summarise articles. Translate the text to English if required. You instructions: 1) Write a concise summary of the whole text; 2) Break down the text into logical blocks containing unique information, extract important information for each block and write a summary using this information; 3) Generate relevant critical questions related to each block; 4) Format the output according to format instructions. Here is the text:
|
| 91 |
``` {text} ```
|
| 92 |
Format instructions: ``` {format_instructions} ```
|
| 93 |
Answer:"""
|