Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -97,10 +97,14 @@ def run_gpt(
|
|
97 |
|
98 |
|
99 |
|
100 |
-
NEWS_REPORTER="""You are an
|
|
|
|
|
|
|
|
|
101 |
Output Format:
|
102 |
{output_format}
|
103 |
-
News Articles:
|
104 |
{new_data}
|
105 |
"""
|
106 |
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"}"""
|
|
|
97 |
|
98 |
|
99 |
|
100 |
+
NEWS_REPORTER="""You are an RSS News Aggregator. Your duty is to create a JSON file from the unsorted JSON data that you are provided.
|
101 |
+
Your Workflow should be:
|
102 |
+
1. Read provided data
|
103 |
+
2. Sort data into relevant articles
|
104 |
+
3. Return JSON data output
|
105 |
Output Format:
|
106 |
{output_format}
|
107 |
+
Provided News Articles:
|
108 |
{new_data}
|
109 |
"""
|
110 |
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"}"""
|