Omnibus commited on
Commit
8f3159f
·
verified ·
1 Parent(s): ce9f05c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -15
app.py CHANGED
@@ -234,24 +234,10 @@ NEWS_REPORTER="""You are an Expert News Aggregator. Your duty is to compress al
234
  Add NEW DATA that you recieve to your CURRENT DATA by combining and reformatting when needed.
235
  Output Format:
236
  {output_format}
237
-
238
  News Articles:
239
  {new_data}
240
  """
241
- output_format="""[
242
- {
243
- "title": "title of the first article",
244
- "description": "description of the article",
245
- "article": "your custom written article",
246
- "links": "all source links that have contributed to the article"
247
- },
248
- {
249
- "title": "title of the second article",
250
- "description": "description of the article",
251
- "article": "your custom written article",
252
- "links": "all source links that have contributed to the article"
253
- }
254
- ]"""
255
  def summarize(inp,history,data=None):
256
  json_box=[]
257
  if inp == "":
 
234
  Add NEW DATA that you recieve to your CURRENT DATA by combining and reformatting when needed.
235
  Output Format:
236
  {output_format}
 
237
  News Articles:
238
  {new_data}
239
  """
240
+ 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"}]"""
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  def summarize(inp,history,data=None):
242
  json_box=[]
243
  if inp == "":