Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -97,21 +97,18 @@ def run_gpt(
|
|
97 |
|
98 |
|
99 |
|
100 |
-
NEWS_REPORTER="""You are
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
|
|
|
|
107 |
```json
|
108 |
{output_format}
|
109 |
```
|
110 |
-
end
|
111 |
-
##############
|
112 |
-
|
113 |
-
Provided News Articles:
|
114 |
-
{new_data}
|
115 |
"""
|
116 |
output_format="""{"title": "title of the first article","description": "description of the article","article": "your custom written article","links": "all source links that have contributed to the article"},{"title": "title of the second article","description": "description of the article","article": "your custom written article","links": "all source links that have contributed to the article"}"""
|
117 |
def summarize(inp,history,seed_slider,data=None):
|
|
|
97 |
|
98 |
|
99 |
|
100 |
+
NEWS_REPORTER="""You are attempting to complete the task
|
101 |
+
task: Sort the input News Articles into a more concise JSON file. Keep all relevant data points.
|
102 |
+
Data:
|
103 |
+
{new_data}
|
104 |
+
Compile the data above into a JSON formatted output that contains all data relevant to the task
|
105 |
+
Include datapoints that will provide greater accuracy in completing the task
|
106 |
+
Include all relevant information in great detail
|
107 |
+
Return the data in JSON format
|
108 |
+
format:
|
109 |
```json
|
110 |
{output_format}
|
111 |
```
|
|
|
|
|
|
|
|
|
|
|
112 |
"""
|
113 |
output_format="""{"title": "title of the first article","description": "description of the article","article": "your custom written article","links": "all source links that have contributed to the article"},{"title": "title of the second article","description": "description of the article","article": "your custom written article","links": "all source links that have contributed to the article"}"""
|
114 |
def summarize(inp,history,seed_slider,data=None):
|