Omnibus commited on
Commit
6f68250
·
verified ·
1 Parent(s): c08d20c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -12
app.py CHANGED
@@ -97,21 +97,18 @@ def run_gpt(
97
 
98
 
99
 
100
- NEWS_REPORTER="""You are an RSS News Aggregator. Your duty is to return 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 only JSON data in the Output Format
105
- Output Format:
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):